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

Disassembly:
push 0xffffffffffffffff
push 0x5d6e18
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x1c], 0
mov ebx, dword [edi + 0x10]
mov ebp, dword [edi + 0x18]
mov esi, ecx
push ebx
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x4c], ebx
call fcn.004c7260
add esp, 8
sub eax, 2
je 0x4c93a9
dec eax
je 0x4c93a4
dec eax
jne 0x4c93b0
or ebx, 0x10
jmp 0x4c93ac
or ebx, 4
jmp 0x4c93ac
or ebx, 1
mov dword [esp + 0x44], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x3d8]
mov ecx, esi
call edx
mov byte [esp + 0x20], al
add edi, 0x1c
push edi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0xdc]
shr ecx, 0x15
test cl, 1
jne 0x4c9550
call fcn.004f48b0
test al, al
je 0x4c93ff
push ebx
lea edx, [esp + 0x70]
push edx
push ebp
push esi
call fcn.004c7e00
add esp, 0x10
jmp 0x4c9504
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.0049ef20
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
mov dword [esp + 0xac], 0
call eax
mov edx, dword [edi]
movzx eax, al
shl eax, 8
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [edi]
movzx ebp, al
or ebp, dword [esp + 0x30]
mov eax, dword [edx + 0x10]
mov ecx, edi
shl ebp, 8
call eax
movzx edi, al
lea ecx, [esp + 0x7c]
or edi, ebp
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x7c], vtable.wxObject.0
call fcn.00423980
push edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov dword [esp + 0x24], edi
mov ebp, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x70]
push ecx
push ebp
mov dword [esp + 0xb8], 1
call dword [sym.imp.USER32.dll_FillRect]
mov dl, bl
and dl, 1
mov byte [esp + 0x30], dl
jne 0x4c94d6
push 0x68d344
push esi
call fcn.0049de40
add esp, 4
push eax
call fcn.00495a20
add esp, 8
test eax, eax
je 0x4c94d6
cmp dword [eax + 0x190], 0
je 0x4c94c7
add eax, 0x188
jmp 0x4c94cc
add eax, 0x178
cmp dword [eax + 8], esi
sete al
mov byte [esp + 0x30], al
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.004c7340
add esp, 0x10
mov dword [esp + 0xac], 0xffffffff
test edi, edi
je 0x4c9504
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test bl, 0x10
je 0x4c95e2
test ebx, 0x200
jne 0x4c95e2
lea ecx, [esp + 0x6c]
push ecx
push ebp
call dword [sym.imp.USER32.dll_DrawFocusRect]
call fcn.004f48b0
test al, al
jne 0x4c95e2
cmp byte [esp + 0x20], al
je 0x4c95e2
push 1
push 1
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x4c95e2
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.0049ef20
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
mov dword [esp + 0xac], 2
call eax
mov edx, dword [edi]
movzx eax, al
shl eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [edi]
movzx ebp, al
or ebp, dword [esp + 0x20]
mov eax, dword [edx + 0x10]
mov ecx, edi
shl ebp, 8
call eax
movzx edi, al
lea ecx, [esp + 0x7c]
or edi, ebp
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x7c], vtable.wxObject.0
call fcn.00423980
push edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x18]
mov edi, eax
push edi
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
test edi, edi
je 0x4c95de
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x18]
cmp dword [esi + 0x190], 0
je 0x4c986c
mov eax, dword [esi + 0x190]
mov edi, dword [eax]
push ebx
push esi
call fcn.004c7260
mov edx, dword [edi + 0x14]
add esp, 8
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x190]
call edx
mov ecx, dword [esp + 0x4c]
xor edi, edi
mov dword [esp + 0xac], 3
cmp ecx, edi
je 0x4c9632
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test al, al
jne 0x4c966c
mov ecx, dword [esi + 0x190]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edi
lea edx, [esp + 0x54]
push edx
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 4
cmp ecx, eax
je 0x4c965b
push eax
call fcn.00423b20
lea ecx, [esp + 0x50]
mov byte [esp + 0xac], 3
call fcn.00506650
mov eax, dword [esp + 0x4c]
cmp eax, edi
jne 0x4c967e
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jmp 0x4c968c
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x190]
lea eax, [esp + 0x24]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x2c], edi
call eax
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x74]
lea edx, [edi + ecx*2]
mov edi, dword [esp + 0x78]
lea ecx, [ebx + eax*2]
mov eax, dword [esp + 0x70]
sub edi, eax
mov dword [esp + 0x38], eax
mov eax, edi
sub eax, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
cdq
sub ebp, ecx
sub eax, edx
mov dword [esp + 0x34], ecx
mov ecx, eax
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x30], eax
cdq
sar ecx, 1
add ecx, dword [esp + 0x70]
sub eax, edx
mov ebx, eax
mov dword [esp + 0x80], ecx
sar ebx, 1
add ebx, dword [esp + 0x6c]
mov ecx, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
call fcn.004c80a0
test al, al
je 0x4c97ba
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
add eax, 0xfffffff0
cmp eax, 0x70
ja case.0x4c973f.16
movzx ecx, byte [eax + 0x4c9b74]
jmp dword [ecx*4 + 0x4c9b60]
mov ebx, dword [esp + 0x30]
sub ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
sub ebp, dword [esp + 0x50]
lea ebx, [ebx + edx - 1]
jmp 0x4c97b6
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
add ecx, eax
sub edi, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edi
jmp 0x4c97ba
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
sub edi, dword [esp + 0x20]
lea edx, [eax + ecx - 1]
mov dword [esp + 0x80], edx
mov dword [esp + 0x40], edi
jmp 0x4c97ba
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
add ebx, eax
add eax, ecx
mov dword [esp + 0x34], eax
sub ebp, ecx
mov dword [esp + 0x3c], ebp
mov edx, dword [esp + 0x18]
push 0x68d984
push edx
lea ecx, [esp + 0x60]
call fcn.004a2380
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x188]
push 1
push edx
push ebx
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0xbc], 5
call eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], vtable.wxDC.0
mov ecx, dword [esp + 0x60]
mov byte [esp + 0xac], 6
test ecx, ecx
je 0x4c9837
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xac], 3
mov dword [esp + 0x58], vtable.wxObject.0
call fcn.00423980
lea ecx, [esp + 0x48]
mov dword [esp + 0xac], 0xffffffff
call fcn.00506650
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi + 0xdc]
shr ecx, 1
test cl, 1
jne 0x4c989a
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call edx
cmp dword [eax + 0x10], 0
mov dword [esp + 0x1c], 2
mov byte [esp + 0x17], 0
jne 0x4c989f
mov byte [esp + 0x17], 1
test byte [esp + 0x1c], 2
je 0x4c98d2
mov eax, dword [esp + 0x98]
and dword [esp + 0x1c], 0xfffffffd
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x90], 8
jb 0x4c98d2
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x4c9b32
test bl, 4
je 0x4c98ee
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
jmp 0x4c9946
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
call fcn.0049f190
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
or dword [esp + 0x1c], 1
mov ecx, edi
mov dword [esp + 0xac], 7
call edx
movzx eax, al
shl eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
movzx eax, al
or eax, dword [esp + 0x24]
mov ecx, edi
shl eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
call edx
movzx edi, al
or edi, dword [esp + 0x24]
test byte [esp + 0x1c], 1
mov dword [esp + 0xac], 0xffffffff
je 0x4c9969
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.wxObject.0
call fcn.00423980
mov dword [esp + 0x58], ebp
cmp edi, 0xffffffff
je 0x4c9980
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x5c], eax
jmp 0x4c9988
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
push 1
push ebp
mov dword [esp + 0xb4], 8
mov dword [esp + 0x58], ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x54], eax
cmp dword [esi + 0x194], 0
mov byte [esp + 0xac], 9
je 0x4c9af8
push 0x68d984
push ebp
lea ecx, [esp + 0x2c]
call fcn.004a2380
mov dword [esp + 0x80], 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 0xb
mov dword [esp + 0x7c], vtable.wxColour.0
call fcn.004e68e0
mov edx, dword [esp + 0x7c]
push 0xff
mov eax, edi
shr eax, 0x10
push eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
shr ecx, 8
push ecx
push edi
lea ecx, [esp + 0x8c]
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x8c]
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0xb0], 0xc
call edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 0xa
mov dword [esp + 0x7c], vtable.wxObject.0
call fcn.00423980
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0049f340
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x64]
mov byte [esp + 0xb0], 0xd
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 0xa
call fcn.004b26e0
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
shr ebx, 8
sub ecx, edi
not ebx
mov dword [esp + 0x3c], ecx
and ebx, 1
push ebx
sub eax, edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
push ecx
mov ecx, dword [esi + 0x194]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], eax
call fcn.00541580
mov dword [esp + 0x24], vtable.wxDC.0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0xac], 0xe
test ecx, ecx
je 0x4c9add
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 9
mov dword [esp + 0x24], vtable.wxObject.0
call fcn.00423980
jmp 0x4c9b11
and ebx, 0x100
shl ebx, 0xc
push ebx
push esi
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.004c8c30
add esp, 0x10
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4c9b21
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x5c]
cmp eax, 0xffffffff
je 0x4c9b32
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov al, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00585b7b
add esp, 0x9c
ret 4