Function at 0x473140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d419
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x578bd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec], edi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xe8], ebx
test esi, esi
je 0x4735ff
test edx, edx
je 0x4735ca
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4735ca
push esi
push edx
push eax
call fcn.004ecbf7
add esp, 0xc
cmp eax, 0xffffffff
jne 0x473601
call fcn.004df68e
mov eax, dword [eax]
mov dword [edi + 4], eax
xor al, al
nop
test al, al
jne 0x473225
lea eax, [ebp - 0xc0]
push 0x52a774
push eax
call fcn.0043f490
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 0
cmp dword [0x57c0e0], 0
mov dword [ebp - 0xe8], ebx
je 0x473207
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x57c0e0]
je 0x473207
call fcn.004667a0
jmp 0x47320c
mov al, byte [0x5785ac]
test al, al
je 0x473225
push esi
call fcn.00466090
add esp, 4
mov byte [ebp - 0xe1], 1
cmp eax, 1
jae 0x47322c
mov byte [ebp - 0xe1], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x473246
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00418510
cmp byte [ebp - 0xe1], 0
je 0x4735c5
push str.cant_read_from_file_descriptor__d
lea ecx, [ebp - 0xe0]
call fcn.004287a0
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.00467dd0
test eax, eax
je 0x4732cb
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, eax
call fcn.004681c0
mov esi, eax
test esi, esi
jne 0x4732dc
lea eax, [ebp - 0xe0]
push eax
call fcn.00469180
add esp, 4
mov esi, eax
call fcn.0043fb80
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 4
call fcn.0043fb80
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 5
call fcn.0043fb80
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], 0
push str.wx.sys_error
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.004287a0
xorps xmm0, xmm0
mov byte [ebp - 4], 7
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x98], str.D:wxWidgets_3.2.0_srccommon_file.cpp
mov dword [ebp - 0x90], str.wxFile::Read
mov dword [ebp - 0x94], 0x14d
mov dword [ebp - 0x8c], 0x52a774
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov esi, dword [edi]
mov byte [ebp - 4], 8
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00447cb0
push 1
lea ecx, [ebp - 0x100]
mov edi, eax
call fcn.00461630
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x473410
cmp dword [0x57857c], 0
je 0x473410
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatStringSpecifier_T_::value____argtype
push str.wxArgNormalizer_int_::wxArgNormalizer
push 0x1e4
push str.D:wxWidgets_3.2.0includewx_strvararg.h
call fcn.0045f1f0
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x473410
mov byte [0x57c0ac], 0
int3
lea ecx, [ebp - 0x100]
call fcn.00460dc0
push esi
push eax
push edi
call fcn.00429810
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004e0f9d
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
cmp ecx, 8
jb 0x47346c
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x473462
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47361f
push ecx
push edx
call fcn.004c8cae
add esp, 8
mov esi, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
test esi, esi
je 0x4734d6
push 0x429780
push dword [esi + 0x10]
mov byte [ebp - 4], 9
push dword [esi + 0x14]
call fcn.00462a80
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.004e0f9d
push 0x429750
push dword [esi]
mov byte [ebp - 4], 0xa
push dword [esi + 4]
call fcn.00462a80
push dword [esi]
mov dword [esi + 8], 0
call fcn.004e0f9d
push 0x20
push esi
call fcn.004c8cae
add esp, 0x28
lea ecx, [ebp - 0xc0]
call fcn.00418510
lea ecx, [ebp - 0x100]
call fcn.00428f00
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004e0f9d
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 8
jb 0x473535
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47352b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47361f
push ecx
push edx
call fcn.004c8cae
add esp, 8
push dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
call fcn.004e0f9d
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 8
jb 0x473592
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x473588
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47361f
push ecx
push edx
call fcn.004c8cae
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00418510
mov edi, dword [ebp - 0xec]
mov al, 1
jmp 0x4731c0
or eax, 0xffffffff
jmp 0x473601
cmp dword [0x57857c], ebx
je 0x4735ff
push 0
push str.__pBuf___0___IsOpened___
push str.wxFile::Read
push 0x147
push str.D:wxWidgets_3.2.0_srccommon_file.cpp
call fcn.0045f1f0
add esp, 0x14
cmp byte [0x57c0ac], bl
je 0x4735ff
mov byte [0x57c0ac], bl
int3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9126
mov esp, ebp
pop ebp
ret 8
call fcn.004ce51f
int3