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

Disassembly:
push 0xffffffffffffffff
push 0x5deeb9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], vtable.wxFont.0
mov edi, dword [esp + 0x78]
test dword [edi], 0x1e00007c
mov ebp, dword [esp + 0x80]
mov esi, 1
mov dword [esp + 0x6c], esi
je 0x524f41
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00524280
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
cmp ecx, eax
je 0x524f18
push eax
call fcn.00423b20
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.004b26e0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x524f41
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x524fc0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
test dword [eax], 0x1e00007c
je 0x524f80
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00524280
lea edx, [esp + 0x18]
mov byte [esp + 0x6c], 3
cmp edx, eax
je 0x524f6e
push eax
mov ecx, edx
call fcn.00423b20
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.004b26e0
mov ecx, dword [esp + 0x1c]
test ebp, ebp
je 0x524fc0
test ecx, ecx
je 0x524f93
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test al, al
jne 0x524fc0
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.0049f340
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
cmp ecx, eax
je 0x524fb2
push eax
call fcn.00423b20
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.004b26e0
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x3c], vtable.wxObject.0
mov dword [esp + 0x40], eax
test eax, eax
je 0x524fd9
add dword [eax + 4], esi
mov edx, dword [edi + 0xdc]
movzx ecx, byte [edi + 0xe1]
mov al, byte [edi + 0xe0]
mov dword [esp + 0x44], edx
movzx edx, byte [edi + 0xe2]
mov byte [esp + 0x49], cl
movzx ecx, byte [edi + 0xe3]
mov byte [esp + 0x4a], dl
movzx edx, byte [edi + 0xe4]
mov ebx, vtable.wxColour.0
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x48], al
mov byte [esp + 0x4b], cl
mov byte [esp + 0x4c], dl
mov byte [esp + 0x6c], 5
test al, al
jne 0x5250b0
mov esi, dword [esp + 0x7c]
add esi, 0xd4
lea eax, [esp + 0x3c]
cmp eax, esi
je 0x525049
push esi
mov ecx, eax
call fcn.00423b20
mov ecx, dword [esi + 8]
movzx edx, byte [esi + 0xd]
mov al, byte [esi + 0xc]
mov dword [esp + 0x44], ecx
movzx ecx, byte [esi + 0xe]
mov byte [esp + 0x49], dl
movzx edx, byte [esi + 0xf]
mov byte [esp + 0x4a], cl
movzx ecx, byte [esi + 0x10]
mov byte [esp + 0x48], al
mov byte [esp + 0x4b], dl
mov byte [esp + 0x4c], cl
test ebp, ebp
je 0x5250b0
test al, al
jne 0x5250b0
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call fcn.0049f190
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 6
call fcn.0049dff0
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 5
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.00423980
mov eax, dword [edi + 0xec]
mov dword [esp + 0x28], vtable.wxObject.0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5250c9
inc dword [eax + 4]
movzx ecx, byte [edi + 0xf5]
movzx edx, byte [edi + 0xf6]
mov eax, dword [edi + 0xf0]
mov byte [esp + 0x35], cl
movzx ecx, byte [edi + 0xf7]
mov byte [esp + 0x36], dl
movzx edx, byte [edi + 0xf8]
mov dword [esp + 0x30], eax
mov al, byte [edi + 0xf4]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x34], al
mov byte [esp + 0x37], cl
mov byte [esp + 0x38], dl
mov bl, 7
mov byte [esp + 0x6c], bl
test al, al
jne 0x52519b
mov esi, dword [esp + 0x7c]
add esi, 0xe8
lea eax, [esp + 0x28]
cmp eax, esi
je 0x525135
push esi
mov ecx, eax
call fcn.00423b20
mov ecx, dword [esi + 8]
movzx edx, byte [esi + 0xd]
mov al, byte [esi + 0xc]
mov dword [esp + 0x30], ecx
movzx ecx, byte [esi + 0xe]
mov byte [esp + 0x35], dl
movzx edx, byte [esi + 0xf]
mov byte [esp + 0x36], cl
movzx ecx, byte [esi + 0x10]
mov byte [esp + 0x34], al
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], cl
test ebp, ebp
je 0x52519b
test al, al
jne 0x52519b
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call fcn.0049ef20
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 8
call fcn.0049dff0
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.00423980
mov esi, dword [esp + 0x74]
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.00524c10
mov eax, dword [edi]
shr eax, 6
mov dword [esp + 0x14], 1
test al, 1
je 0x525217
mov eax, dword [edi + 0x10c]
or dword [esi], 0x40
lea ebp, [edi + 0x110]
lea ebx, [esi + 0x110]
mov dword [esi + 0x10c], eax
cmp ebx, ebp
je 0x5251ef
push ebp
mov ecx, ebx
call fcn.00423b20
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], ecx
movzx edx, byte [ebp + 0xc]
mov byte [ebx + 0xc], dl
movzx eax, byte [ebp + 0xd]
mov byte [ebx + 0xd], al
mov cl, byte [ebp + 0xe]
mov byte [ebx + 0xe], cl
movzx edx, byte [ebp + 0xf]
mov byte [ebx + 0xf], dl
movzx eax, byte [ebp + 0x10]
mov byte [ebx + 0x10], al
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x52522e
mov ecx, dword [edi]
shr ecx, 7
test cl, 1
je 0x52522e
mov ebx, dword [esp + 0x7c]
jmp 0x525243
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x52524c
mov edx, dword [ebx]
shr edx, 7
test dl, 1
je 0x52524c
or dword [esi], 0x80
mov dword [esi + 0x1c], eax
mov eax, dword [edi]
shr eax, 0xa
test al, 1
je 0x52525a
lea ebx, [edi + 4]
jmp 0x525267
mov ecx, dword [ebx]
shr ecx, 0xa
test cl, 1
je 0x525297
add ebx, 4
lea ebp, [esi + 4]
cmp ebp, ebx
je 0x52528d
mov eax, dword [ebp + 8]
push eax
call fcn.005844d1
xor eax, eax
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
push ebx
mov ecx, ebp
mov dword [ebp], eax
call fcn.00465a10
mov ebx, dword [esp + 0x7c]
or dword [esi], 0x400
mov edx, dword [edi]
shr edx, 8
test dl, 1
je 0x5252a6
mov ecx, dword [edi + 0x10]
jmp 0x5252b2
mov eax, dword [ebx]
shr eax, 8
test al, 1
je 0x5252c1
mov ecx, dword [ebx + 0x10]
mov eax, dword [edi + 0x14]
or dword [esi], 0x100
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [edi]
shr ecx, 9
test cl, 1
je 0x5252d3
mov edi, dword [edi + 0x18]
mov dword [esi + 0x18], edi
jmp 0x5252e3
mov edx, dword [ebx]
shr edx, 9
test dl, 1
je 0x5252e9
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
or dword [esi], 0x200
mov edi, vtable.wxObject.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 5
mov dword [esp + 0x28], edi
call fcn.00423980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x3c], edi
call fcn.00423980
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0
call fcn.004b26e0
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret