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

Disassembly:
push 0xffffffffffffffff
push 0x5ccf12
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x160]
mov eax, dword [esp + 0x15c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x46b138
cmp eax, ebx
je 0x46b138
mov ecx, dword [edi]
cmp ecx, ebx
je 0x46b138
push ecx
push esi
push 1
push eax
call fcn.0058d2a7
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x20], ebp
cmp ebp, esi
jae 0x46b134
mov eax, dword [edi]
cmp eax, ebx
je 0x46b134
push eax
call fcn.0058ce7f
add esp, 4
test eax, eax
setne al
cmp al, bl
je 0x46b134
xor al, al
lea esp, [esp]
cmp al, bl
jne 0x46ae66
lea eax, [esp + 0xcc]
push 0x5fcf00
push eax
call fcn.00423280
or dword [esp + 0x20], 1
push eax
push 1
mov dword [esp + 0x164], ebx
call fcn.00409f60
add esp, 0x10
mov byte [esp + 0x17], 1
test al, al
jne 0x46ae6a
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x154], 0xffffffff
je 0x46aeb1
mov ecx, dword [esp + 0xe8]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0xe0], ebp
jb 0x46aeb6
mov edx, dword [esp + 0xcc]
push edx
call fcn.00584768
add esp, 4
jmp 0x46aeb6
mov ebp, 8
cmp byte [esp + 0x17], bl
je 0x46b130
push str.Read_error_on_file__s
lea ecx, [esp + 0x88]
call fcn.00402bb0
mov edi, 7
xor eax, eax
mov dword [esp + 0x154], 1
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ecx, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x154], 3
call fcn.00425e70
cmp eax, ebx
je 0x46af3d
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x8c]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x46af4d
lea eax, [esp + 0x84]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x154], 4
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x154], 5
call fcn.00420510
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
push str.wx.sys_error
lea ecx, [esp + 0xac]
mov byte [esp + 0x158], 6
call fcn.00402bb0
mov edx, dword [esp + 0x1c]
sub esp, 0x24
add edx, 4
mov ecx, esp
mov dword [esp + 0xa4], esp
push edx
mov byte [esp + 0x17c], 7
call fcn.00402b70
push 0x5fcf00
push str.wxFFile::Read
push 0x84
push str....._srccommon_ffile.cpp
push 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x18c], 8
call fcn.0040e0e0
mov esi, eax
mov byte [esp + 0x178], 9
lea eax, [esp + 0x48]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0xd4]
push ecx
mov ecx, esi
call fcn.00429810
mov ecx, eax
mov byte [esp + 0x17c], 0xa
call fcn.00428340
lea ecx, [esp + 0xf0]
mov byte [esp + 0x154], 7
call fcn.0040e140
mov edx, dword [esp + 0xc4]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xbc], ebp
jb 0x46b056
mov eax, dword [esp + 0xa8]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0xa8], cx
lea ecx, [esp + 0x24]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0x154], 3
call fcn.004020c0
mov edx, dword [esp + 0x54]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x46b09f
mov eax, dword [esp + 0x38]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x78]
xor ecx, ecx
push edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x70], ebp
jb 0x46b0ce
mov eax, dword [esp + 0x5c]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xa0]
xor ecx, ecx
push edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x158], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x98], ebp
jb 0x46b111
mov eax, dword [esp + 0x84]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
mov al, 1
jmp 0x46ae30
mov ebp, dword [esp + 0x20]
mov eax, ebp
jmp 0x46b13a
xor eax, eax
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00585b7b
add esp, 0x144
ret 8