Function at 0x513fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6f1917
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0x144]
lea eax, [esp + 0x74]
push 0xbc
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, 0x9c
cmp dword [ebp + 0x378], 1
mov eax, 0xbc
cmove eax, ecx
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x514093
mov eax, dword [edi]
shr eax, 7
test al, 1
je 0x514093
mov esi, dword [esp + 0x78]
or esi, 8
mov dword [esp + 0x78], esi
cmp ecx, 3
jne 0x51405f
mov eax, 2
mov word [esp + 0x8c], ax
jmp 0x514097
cmp ecx, 2
jne 0x514073
mov eax, 3
mov word [esp + 0x8c], ax
jmp 0x514097
cmp ecx, 4
jne 0x514084
mov eax, ecx
mov word [esp + 0x8c], ax
jmp 0x514097
mov eax, 1
mov word [esp + 0x8c], ax
jmp 0x514097
mov esi, dword [esp + 0x78]
mov ecx, dword [edi]
mov eax, ecx
movsd xmm1, qword [0x744b08]
movsd xmm2, qword [0x7227f8]
shr eax, 8
test al, 1
je 0x5140f1
movd xmm0, dword [edi + 0x10]
or esi, 5
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x78], esi
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
movd xmm0, dword [edi + 0x14]
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x80], eax
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x88], eax
mov eax, ecx
shr eax, 9
test al, 1
je 0x51411d
movd xmm0, dword [edi + 0x18]
or esi, 2
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x78], esi
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x84], eax
shr ecx, 0xa
test cl, 1
je 0x5141d2
mov ecx, dword [edi + 8]
or esi, 0x10
mov edx, 0x20
movzx eax, cx
cmp ecx, edx
mov dword [esp + 0x78], esi
cmovb edx, eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x8e], dx
cmp ax, dx
jae 0x5141d2
cmp dword [0x82e960], 0
je 0x5141a2
cmp ebx, dword [edi + 8]
jb 0x5141a2
push 0
push str.uiIndex___m_nCount
push str.wxBaseArrayInt::Item
push 0x349
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_dynarray.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x514192
mov byte [0x87c8e0], 0
int3
movsd xmm2, qword [0x7227f8]
movsd xmm1, qword [0x744b08]
mov eax, dword [edi + 0xc]
movd xmm0, dword [eax + ebx*4]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + ebx*4 + 0x90], eax
inc ebx
movsx eax, word [esp + 0x8e]
cmp ebx, eax
jb 0x514155
mov esi, dword [esp + 0x78]
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0xb
test al, 1
je 0x514203
movd xmm0, dword [edi + 0x20]
or esi, 0x80
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x78], esi
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x114], eax
shr ecx, 0xc
test cl, 1
je 0x51422e
movd xmm0, dword [edi + 0x24]
or esi, 0x40
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x78], esi
mulsd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x110], eax
cmp dword [ebp + 0x378], 1
jle 0x51425e
mov ecx, dword [0x87c8dc]
mov eax, dword [ecx]
call dword [eax + 0xec]
mov esi, dword [esp + 0x78]
cmp eax, 2
jne 0x51425e
or esi, 0x10000
or word [esp + 0x7e], 1
mov dword [esp + 0x78], esi
test esi, esi
je 0x514464
mov eax, dword [ebp + 0x368]
lea ecx, [ebp + 0x368]
push 0
push dword [esp + 0x150]
push dword [esp + 0x150]
call dword [eax + 0xac]
lea eax, [esp + 0x74]
push eax
push 0
push 0x447
push dword [ebp + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x514464
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x514460
call fcn.005c92f0
mov dword [esp + 0x18], eax
mov dword [esp + 0x13c], 0
call fcn.005c92f0
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
lea eax, [esp + 0x24]
mov byte [esp + 0x140], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push 0
mov dword [esp + 0x14c], 2
mov dword [esp + 0x3c], 6
mov dword [esp + 0x44], str....._srcmsw_textctrl.cpp
mov dword [esp + 0x4c], str.wxTextCtrl::MSWSetParaFormat
mov dword [esp + 0x48], 0xb29
mov dword [esp + 0x50], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x14c], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.SendMessage_EM_SETPARAFORMAT_
push 0xb29
push str....._srcmsw_textctrl.cpp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
call fcn.00479740
push dword [esp + 0x6c]
mov edi, dword [sym.imp.MSVCR120.dll_free]
call edi
add esp, 4
cmp dword [esp + 0x68], 8
jb 0x5143da
push dword [esp + 0x54]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x14], esi
test esi, esi
je 0x51444c
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0x144], 4
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call edi
push 0x439bf0
push dword [esi]
mov byte [esp + 0x154], 2
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call edi
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00420020
xor al, al
jmp 0x514466
mov al, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x12c
ret 0xc