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

Disassembly:
mov eax, 0x443512
call fcn.00428c84
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
lea esi, [edi + 0x20]
mov ecx, esi
call fcn.004018a1
test byte [edi + 4], 0x40
mov ecx, 0x449e40
je 0x409517
mov eax, 0x449e48
jmp 0x409523
test byte [edi + 4], 0x20
mov eax, 0x449e50
cmove eax, ecx
and dword [edi], 0
push eax
push dword [ebp + 8]
call fcn.00430ab0
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x409543
mov ecx, edi
call fcn.0040a1e0
jmp 0x409838
xor ebx, ebx
mov byte [ebp - 0x14], 1
test byte [edi + 4], 0x10
mov dword [edi + 0x18], 1
je 0x409745
push 2
push ebx
push eax
call fcn.004314e7
push dword [edi]
call fcn.00431b03
push ebx
push ebx
push dword [edi]
mov dword [edi + 0x10], eax
call fcn.004314e7
mov esi, 0x400
add esp, 0x1c
cmp dword [edi + 0x10], esi
jge 0x40958e
mov esi, dword [edi + 0x10]
test esi, esi
je 0x4097fe
push esi
call fcn.0041143a
push dword [edi]
mov dword [ebp - 0x10], eax
push 1
push esi
push eax
call fcn.004310f0
add esp, 0x14
cmp eax, 1
sete cl
mov dword [ebp - 0x14], ecx
jne 0x409733
and dword [edi + 4], 0xfffffffa
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [section..data], edx
je 0x409664
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x45d004]
xor ebx, ebx
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x40960b
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
cmp ebx, esi
jge 0x409605
mov ecx, dword [edi + section..data]
mov al, byte [edx + ebx]
cmp al, byte [ebx + ecx]
jne 0x409602
mov eax, dword [edi + 0x45d004]
inc ebx
cmp ebx, eax
jl 0x4095e3
jmp 0x409605
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
cmp ebx, eax
je 0x409627
inc edx
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x18], edx
shl eax, 4
mov dword [ebp - 0x1c], eax
cmp dword [eax + section..data], ebx
jne 0x4095ce
jmp 0x409664
shl edx, 4
push 2
mov eax, dword [edx + 0x45d00c]
or dword [edi + 4], eax
pop eax
cmp ebx, eax
jne 0x40963d
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x45d008]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40964e
xor ecx, ecx
jmp 0x40965a
push eax
call fcn.004304f5
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
lea ecx, [edi + 0x24]
call fcn.00401d28
cmp esi, ebx
jle 0x409675
push 0
push ebx
push dword [edi]
call fcn.004314e7
add esp, 0xc
test ebx, ebx
jne 0x409707
lea ecx, [ebp - 0x18]
call fcn.00401691
and dword [ebp - 4], ebx
push esi
push dword [ebp - 0x10]
push ecx
mov eax, esp
lea ecx, [ebp - 0x3c]
mov dword [eax], 0x4457e0
call fcn.0040a990
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401af0
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esi
push eax
mov dword [ecx], str.UTF_16
lea ecx, [ebp - 0x3c]
call fcn.0040807e
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b352
mov esi, dword [ebp - 0x18]
push ecx
mov eax, esp
mov dword [eax], esi
lea eax, [ebp - 0x24]
push eax
call fcn.00404995
pop ecx
pop ecx
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.00402898
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401b78
lea ecx, [ebp - 0x3c]
call fcn.0040aa82
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401b78
mov eax, dword [edi + 0x24]
mov esi, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x409736
cmp byte [esi], 0x3c
jne 0x409736
push 0x4457e0
call fcn.004304f5
pop ecx
push eax
push 0x4457e0
lea ecx, [edi + 0x24]
call fcn.00401d28
jmp 0x409736
mov esi, dword [ebp - 0x10]
push esi
call fcn.00411435
mov eax, dword [ebp - 0x14]
pop ecx
jmp 0x4097f6
test byte [edi + 4], 0x20
je 0x409801
test byte [edi + 4], 0x40
je 0x40976c
push 2
push 0
push eax
call fcn.004314e7
push dword [edi]
call fcn.00431b03
add esp, 0x10
mov dword [edi + 0x10], eax
xor esi, esi
cmp dword [section..data], ebx
je 0x4097fe
mov ecx, dword [edi + 4]
xor eax, eax
test dword [eax + 0x45d00c], ecx
jne 0x409797
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + section..data], ebx
jne 0x40977f
jmp 0x4097fe
shl esi, 4
mov ebx, dword [esi + 0x45d004]
cmp ebx, 2
jne 0x4097a8
mov dword [edi + 0x18], ebx
mov eax, dword [esi + 0x45d008]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4097b9
xor ecx, ecx
jmp 0x4097c5
push eax
call fcn.004304f5
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
lea ecx, [edi + 0x24]
call fcn.00401d28
cmp dword [edi + 0x10], 0
je 0x4097d9
xor ebx, ebx
jmp 0x4097fe
push dword [edi]
push 1
push ebx
push dword [esi + section..data]
call fcn.00431d2d
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
mov dword [ebp - 0x14], eax
test al, al
je 0x409537
lea esi, [edi + 0x20]
test byte [edi + 4], 0x40
je 0x40980c
mov eax, dword [edi + 0x10]
jmp 0x40980e
mov eax, ebx
mov dword [edi + 0x14], eax
test ebx, ebx
je 0x409833
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
and dword [eax], 0
mov eax, esp
push esi
mov dword [eax], 0x449e58
call fcn.00407f63
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov al, cl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4