Function at 0x10362d8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
mov edx, dword [esi]
xor ebp, ebp
cmp edx, ebp
mov ebx, 8
mov dword [esi + 4], ebx
je 0x10364bb
cmp dword [edx + 8], 2
jne 0x10364bb
xor eax, eax
mov ecx, 0x43
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x12c]
mov eax, dword [esp + 0x130]
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10c
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x38], ebx
call fcn.01013570
test eax, eax
mov eax, dword [esp + 0x10]
je 0x103644a
cmp eax, ebp
je 0x103644a
cmp dword [eax + 0x10], ebp
jne 0x103644a
mov edi, dword [eax + 0xc]
cmp edi, ebp
jne 0x103649a
mov ebx, dword [esp + 0x134]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x103649a
mov ecx, dword [esp + 0x138]
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x1c]
push edx
add eax, 0x20
push eax
call ebx
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
mov word [eax + 0x14], 0xffff
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov edi, 0x114
push edi
push edx
push eax
call ebp
test eax, eax
je 0x10363dc
cmp dword [esp + 0x14], edi
je 0x10363f1
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x18]
push 0
call dword [edx + 0xc]
test eax, eax
je 0x1036485
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1036463
cmp dword [esp + 0x14], edi
jne 0x1036463
mov eax, dword [esp + 0x10]
cmp dword [eax], 0x52495041
jne 0x1036451
cmp dword [eax + 8], 8
jne 0x1036451
cmp word [eax + 0x16], di
jne 0x1036451
cmp dword [eax + 4], edi
jne 0x1036451
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x1036451
cmp word [eax + 0x14], 0xffff
jne 0x1036451
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x103649a
jmp 0x103638d
mov edi, 1
jmp 0x103649a
mov eax, dword [esi]
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push 0
call dword [eax + 0xc]
test eax, eax
je 0x1036476
jmp 0x1036491
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x18]
push 0
call dword [edx + 0xc]
test eax, eax
je 0x1036485
jmp 0x1036491
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x18]
push 0xffffffffffffffff
call dword [edx + 0xc]
jmp 0x1036491
mov eax, dword [esi]
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov edi, 1
xor ebx, ebx
cmp eax, ebx
je 0x10364a9
push eax
call fcn.0108e495
add esp, 4
mov eax, edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x10
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
push ecx
mov ecx, dword [esp + 0x130]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call fcn.0103be90
add esp, 0x14
pop edi
mov dword [esi + 4], ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x10