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

Disassembly:
push 0xffffffffffffffff
push 0x5642f9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, dword [esp + 0x78]
mov dword [esp + 0x14], 0
mov eax, dword [edi + 0x30]
mov ebx, vtable.wxObject.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4cfebe
inc dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.wxFont.0
mov ebp, dword [esp + 0x80]
mov esi, 1
mov dword [esp + 0x6c], esi
test eax, eax
jne 0x4cff2a
mov ecx, dword [esp + 0x7c]
add ecx, 0x2c
lea edx, [esp + 0x18]
cmp edx, ecx
je 0x4cfef5
push ecx
mov ecx, edx
call fcn.00461760
mov eax, dword [esp + 0x1c]
test ebp, ebp
je 0x4cff2a
test eax, eax
jne 0x4cff2a
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.004aa600
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
cmp ecx, eax
je 0x4cff1c
push eax
call fcn.00461760
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.0049b770
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
test eax, eax
je 0x4cff3c
add dword [eax + 4], esi
movzx eax, byte [edi + 0x10]
movzx ecx, byte [edi + 0x11]
mov edx, dword [edi + 0xc]
mov byte [esp + 0x48], al
movzx eax, byte [edi + 0x13]
mov byte [esp + 0x49], cl
movzx ecx, byte [edi + 0x14]
mov dword [esp + 0x44], edx
mov dl, byte [edi + 0x12]
mov ebx, vtable.wxColour.0
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x4a], dl
mov byte [esp + 0x4b], al
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call dword [0x581310]
test al, al
jne 0x4d000d
mov esi, dword [esp + 0x7c]
add esi, 4
lea edx, [esp + 0x3c]
cmp edx, esi
je 0x4cffa1
push esi
mov ecx, edx
call fcn.00461760
movzx ecx, byte [esi + 0xc]
movzx edx, byte [esi + 0xd]
mov eax, dword [esi + 8]
mov byte [esp + 0x48], cl
movzx ecx, byte [esi + 0xf]
mov byte [esp + 0x49], dl
movzx edx, byte [esi + 0x10]
mov dword [esp + 0x44], eax
mov al, byte [esi + 0xe]
mov byte [esp + 0x4a], al
mov byte [esp + 0x4b], cl
mov byte [esp + 0x4c], dl
test ebp, ebp
je 0x4d000d
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x3c]
call edx
test al, al
jne 0x4d000d
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.004aa450
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 4
call fcn.0040c6bd
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 3
call fcn.00493df0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], vtable.wxObject.0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4d0023
inc dword [eax + 4]
movzx edx, byte [edi + 0x24]
movzx eax, byte [edi + 0x25]
mov ecx, dword [edi + 0x20]
mov byte [esp + 0x34], dl
movzx edx, byte [edi + 0x27]
mov byte [esp + 0x35], al
movzx eax, byte [edi + 0x28]
mov dword [esp + 0x30], ecx
mov cl, byte [edi + 0x26]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], al
mov bl, 5
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], bl
call dword [0x581310]
test al, al
jne 0x4d00ed
mov esi, dword [esp + 0x7c]
add esi, 0x18
lea ecx, [esp + 0x28]
cmp ecx, esi
je 0x4d0082
push esi
call fcn.00461760
movzx eax, byte [esi + 0xc]
movzx ecx, byte [esi + 0xd]
mov edx, dword [esi + 8]
mov byte [esp + 0x34], al
movzx eax, byte [esi + 0xf]
mov byte [esp + 0x35], cl
movzx ecx, byte [esi + 0x10]
mov dword [esp + 0x30], edx
mov dl, byte [esi + 0xe]
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], al
mov byte [esp + 0x38], cl
test ebp, ebp
je 0x4d00ed
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
lea ecx, [esp + 0x28]
call eax
test al, al
jne 0x4d00ed
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.004aa330
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 6
call fcn.0040c6bd
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], bl
call fcn.00493df0
mov esi, dword [esp + 0x74]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.004cfa40
mov eax, dword [edi + 0x34]
mov dword [esp + 0x14], 1
test eax, eax
je 0x4d0123
test byte [edi], 0x80
je 0x4d0123
mov ebx, dword [esp + 0x7c]
jmp 0x4d0133
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4d013c
test byte [ebx], 0x80
je 0x4d013c
or dword [esi], 0x80
mov dword [esi + 0x34], eax
mov edx, dword [edi]
shr edx, 0xa
test dl, 1
je 0x4d014c
lea eax, [edi + 0x38]
push eax
jmp 0x4d015a
mov ecx, dword [ebx]
shr ecx, 0xa
test cl, 1
je 0x4d0168
lea edx, [ebx + 0x38]
push edx
lea ecx, [esi + 0x38]
call fcn.00461410
or dword [esi], 0x400
mov eax, dword [edi]
shr eax, 8
test al, 1
je 0x4d0176
mov ecx, dword [edi + 0x44]
jmp 0x4d0183
mov ecx, dword [ebx]
shr ecx, 8
test cl, 1
je 0x4d0192
mov ecx, dword [ebx + 0x44]
mov eax, dword [edi + 0x48]
or dword [esi], 0x100
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ecx
mov edx, dword [edi]
shr edx, 9
test dl, 1
je 0x4d01a4
mov edi, dword [edi + 0x4c]
mov dword [esi + 0x4c], edi
jmp 0x4d01b3
mov eax, dword [ebx]
shr eax, 9
test al, 1
je 0x4d01b9
mov eax, dword [ebx + 0x4c]
mov dword [esi + 0x4c], eax
or dword [esi], 0x200
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 3
call fcn.00493df0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.00493df0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0
call fcn.0049b770
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