Function at 0x4513f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5caad7
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x154]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
cmp edx, ebx
je 0x4517f3
cmp eax, ebx
je 0x4517f3
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x4517f3
push edx
push eax
push ecx
call fcn.00589da2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4517f5
call fcn.00586783
mov eax, dword [eax]
mov dword [edi + 4], eax
xor al, al
cmp al, bl
jne 0x4514df
lea ecx, [esp + 0x11c]
push 0x5fcf00
push ecx
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 1
mov dword [esp + 0x14c], ebx
cmp dword [0x695aa8], ebx
je 0x4514c3
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x4514c3
call fcn.004443b0
jmp 0x4514c8
mov al, byte [0x68a580]
cmp al, bl
je 0x4514df
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x4514e3
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x14c], 0xffffffff
je 0x451524
mov edx, dword [esp + 0x138]
and dword [esp + 0x18], 0xfffffffe
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x130], 8
jb 0x451524
mov eax, dword [esp + 0x11c]
push eax
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4517ee
push str.cant_read_from_file_descriptor__d
lea ecx, [esp + 0x80]
call fcn.00402bb0
mov ebp, 7
xor ecx, ecx
mov dword [esp + 0x14c], 1
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
xor edx, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x14c], 3
call fcn.00425e70
cmp eax, ebx
je 0x4515ab
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x4515b8
lea edx, [esp + 0x7c]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x20], eax
mov byte [esp + 0x14c], 4
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x14c], 5
call fcn.00420510
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
push str.wx.sys_error
lea ecx, [esp + 0xa4]
mov byte [esp + 0x150], 6
call fcn.00402bb0
mov byte [esp + 0x14c], 7
mov dword [esp + 0xc4], 1
mov dword [esp + 0xcc], str....._srccommon_file.cpp
mov dword [esp + 0xd4], str.wxFile::Read
mov dword [esp + 0xd0], 0x14d
mov dword [esp + 0xd8], 0x5fcf00
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0xec], eax
xor eax, eax
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], ax
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov esi, dword [edi]
mov byte [esp + 0x14c], 8
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00429810
push esi
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0041de00
push eax
push edi
call fcn.0040b680
add esp, 0xc
lea ecx, [esp + 0xc4]
mov byte [esp + 0x14c], 7
call fcn.0040e140
mov edx, dword [esp + 0xbc]
push edx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0xb4], esi
jb 0x451716
mov eax, dword [esp + 0xa0]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0xa0], cx
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0x14c], 3
call fcn.004020c0
mov edx, dword [esp + 0x50]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x48], esi
jb 0x45175f
mov eax, dword [esp + 0x34]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x74]
xor ecx, ecx
push edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x45178e
mov eax, dword [esp + 0x58]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x98]
xor ecx, ecx
push edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov dword [esp + 0x150], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x90], esi
jb 0x4517ce
mov eax, dword [esp + 0x7c]
push eax
call fcn.00584768
add esp, 4
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
mov al, 1
jmp 0x451480
or eax, 0xffffffff
jmp 0x4517f5
xor eax, eax
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00585b7b
add esp, 0x13c
ret 8