Function at 0x403090
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42df78
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
mov esi, ecx
test edi, edi
je 0x40339b
mov ecx, dword [esi + 8]
push eax
push edi
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.00415084
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x64]
push 0x20
push eax
call fcn.00414bb9
add esp, 0x1c
test eax, eax
je 0x40318b
push 0xbe2
call fcn.004152b9
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0xbe0
push 0
mov dword [esp + 0x88], 0
mov ecx, dword [esi + 8]
add edi, 0x20
push edi
push ecx
call fcn.00415084
mov edx, dword [esi + 8]
push edx
push 1
push 0xbe0
push ebx
call fcn.00414bb9
add esp, 0x20
test eax, eax
jne 0x403195
mov dword [esp + 0x80], 0xffffffff
test ebx, ebx
je 0x40318b
push ebx
call fcn.00414c00
add esp, 4
mov eax, 2
jmp 0x40339b
xor edi, edi
xor eax, eax
cmp ax, word [esp + 0x64]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
jge 0x4032ec
lea esp, [esp]
mov ecx, dword [esp + 0x14]
inc dword [0x43bd18]
push 4
lea edi, [ebx + ecx]
push str.ENT
push edi
call fcn.00413c15
add esp, 0xc
test eax, eax
jne 0x403173
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4031de
movzx eax, word [edi + 0x1a]
jmp 0x4031e2
movzx eax, word [edi + 0x16]
mov edx, dword [esp + 0x14]
add ebx, edx
add ebx, dword [esi + 0x44]
push ecx
movzx ecx, ax
mov eax, dword [esi + 0x18]
push ebx
call fcn.004035e0
cmp dword [esi + 0x10], 0
mov dword [esp + 0x28], eax
je 0x40320d
mov ax, word [edi + 0x18]
add ax, ax
mov word [edi + 0x18], ax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40321f
mov cx, word [edi + 0x18]
mov word [esp + 0x30], cx
jmp 0x403228
mov dx, word [edi + 0x14]
mov word [esp + 0x30], dx
test eax, eax
je 0x403235
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x2c], ecx
jmp 0x40323c
mov edx, dword [edi + 0xc]
mov dword [esp + 0x2c], edx
test eax, eax
je 0x403249
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x3c], ecx
jmp 0x403250
mov edx, dword [edi + 8]
mov dword [esp + 0x3c], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x403260
mov edx, dword [edi + 0x14]
jmp 0x403263
mov edx, dword [edi + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
add ecx, 0x20
add ecx, edx
mov dword [esp + 0x40], ecx
test eax, eax
je 0x40327e
movzx eax, word [edi + 0x1a]
jmp 0x403282
movzx eax, word [edi + 0x16]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx]
movzx eax, ax
add eax, dword [esi + 0x44]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push eax
call edx
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4032ae
push eax
call fcn.00414c00
add esp, 4
test ebx, ebx
je 0x40333a
cmp dword [esi + 0x10], 0
je 0x4032c2
movzx eax, word [edi + 0x1a]
jmp 0x4032c6
movzx eax, word [edi + 0x16]
movsx ecx, word [esp + 0x64]
mov ebx, dword [esp + 0x1c]
movzx eax, ax
add eax, dword [esi + 0x44]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4031b0
xor edi, edi
cmp ebx, edi
je 0x403303
push ebx
call fcn.00414c00
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ebx, edi
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
push edi
push edx
mov ecx, esi
call fcn.00403090
mov dword [esp + 0x18], eax
test eax, eax
je 0x40335d
mov dword [esp + 0x80], 0xffffffff
test ebx, ebx
je 0x40339b
push ebx
call fcn.00414c00
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x40339b
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403356
push eax
call fcn.00414c00
add esp, 4
mov eax, 3
jmp 0x40339b
mov eax, dword [esp + 0x5c]
push edi
push eax
mov ecx, esi
call fcn.00403090
mov esi, eax
mov dword [esp + 0x80], 0xffffffff
test esi, esi
je 0x40338c
test ebx, ebx
je 0x403388
push ebx
call fcn.00414c00
add esp, 4
mov eax, esi
jmp 0x40339b
test ebx, ebx
je 0x403399
push ebx
call fcn.00414c00
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041389c
mov esp, ebp
pop ebp
ret 8