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

Disassembly:
push 0xffffffffffffffff
push 0x566198
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x5f9694]
lea eax, [esp + 0x38]
push eax
push esi
push ecx
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], ebp
call fcn.004fb5a0
mov edi, dword [esp + 0x1e8]
mov ecx, dword [edi + 8]
mov edx, dword [0x5f9694]
mov eax, ecx
mov dword [esp + 0x1dc], ebp
mov ebx, edx
cmp eax, 0xfffffff4
ja 0x4ea986
je 0x4ea7fb
add eax, 0x212
cmp eax, 0x81
ja case.0x4ea42c.529
movzx eax, byte [eax + 0x4eadd4]
jmp dword [eax*4 + 0x4ead98]
mov ebx, dword [0x5fe5e8]
cmp ebx, edx
jne 0x4ea443
mov ebx, dword [0x5fe5ec]
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x64]
mov dword [esp + 0xc0], ecx
mov ecx, dword [edi + 0x60]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
mov byte [esp + 0x7c], 0
jmp 0x4ea50a
mov eax, dword [edi + 0x10]
mov ebx, dword [0x5fe5f0]
mov dword [esp + 0xc0], eax
mov dword [esi + 0x168], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0045fc90
mov byte [esp + 0xd4], 0
jmp 0x4ea50a
cmp byte [esi + 0x17c], 0
mov eax, dword [edi + 0x14]
mov ebx, dword [0x5fe5f8]
mov dword [esp + 0xc0], eax
je 0x4ea50a
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x20]
lea ebp, [esi + 0x16c]
push eax
mov ecx, ebp
call fcn.00503930
cmp dword [esp + 0x1c], 0
je 0x4ea508
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4ea4f9
mov ecx, eax
call fcn.004eb3a0
mov edx, dword [esp + 0x14]
push edx
call fcn.0050475f
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
mov ecx, ebp
call fcn.004e8fe0
xor ebp, ebp
mov dword [esp + 0x50], ebx
cmp dword [esp + 0xc0], ebp
je 0x4ea52f
mov edx, dword [esi]
mov edx, dword [edx + 0x2e0]
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x78], eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x44]
push edx
call eax
mov bl, al
mov eax, dword [edi + 8]
cmp eax, 0xfffffe62
ja 0x4ead0a
je 0x4eacf2
add eax, 0x1cc
cmp eax, 0xa
ja case.0x4ea562.453
jmp dword [eax*4 + 0x4eae58]
mov eax, dword [edi + 0x10]
mov ebx, dword [0x5fe5f4]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0045fc90
cmp dword [edi + 0x1c], ebp
sete cl
mov byte [esp + 0xd4], cl
jmp 0x4ea50a
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x4ea50a
mov eax, dword [edi + 0x14]
mov ebx, dword [0x5fe634]
mov dword [esp + 0xc0], eax
jmp 0x4ea50a
mov ebx, dword [0x5fe5fc]
cmp ebx, edx
jne 0x4ea5ce
mov ebx, dword [0x5fe600]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xc0], ecx
jmp 0x4ea50a
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x4ea5ed
dec eax
mov edx, 1
jmp 0x4ea5ef
xor edx, edx
xor eax, eax
cmp ecx, 0xfffffe3a
sete al
lea edx, [eax + edx*2]
mov eax, dword [edi + 0x3c]
mov ebx, dword [edx*4 + 0x5fe450]
mov dword [esp + 0xc0], eax
jmp 0x4ea50a
mov ebx, dword [0x5fe61c]
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
movzx ebp, al
neg ebp
mov byte [esp + 0x1b], al
movzx eax, word [edi + 0xc]
sbb ebp, ebp
push 0
and ebp, 0x2000
push eax
shl ebp, 0x10
mov dword [esp + 0x1c], eax
call fcn.0049d660
add esp, 8
test eax, eax
jne 0x4ea656
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5fc404]
push ecx
push ebp
push eax
push edx
lea eax, [esp + 0x110]
push eax
mov ecx, esi
call fcn.004a2da0
push eax
lea ecx, [esp + 0x84]
call fcn.004e7590
lea ecx, [esp + 0x100]
mov dword [esp + method.wxObject.virtual_0], vtable.wxObject.0
call fcn.00461690
call fcn.0049dce0
test al, al
jne 0x4ea508
call fcn.0049dcc0
test al, al
jne 0x4ea508
cmp byte [esp + 0x1b], al
jne 0x4ea508
movzx eax, word [edi + 0xc]
cmp ax, 0x20
je 0x4ea6cf
cmp ax, 0xd
jne 0x4ea508
mov ecx, dword [esi + 0xcc]
shr ecx, 5
mov dword [esp + 0x14], 0
test cl, 1
jne 0x4ea6fc
mov edx, dword [esi]
mov edx, dword [edx + 0x330]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov edx, dword [0x5fe620]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x14c]
call fcn.004fb5a0
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x140]
push edx
mov byte [esp + 0x1e0], 1
call eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x1dc], 0
call fcn.004e97a0
jmp 0x4ea508
mov ecx, dword [esi + 0xcc]
shr ecx, 5
test cl, 1
je 0x4ea78e
mov edx, dword [edi + 0x10]
push edx
call fcn.004e7230
add esp, 4
test al, al
je 0x4ea78e
mov eax, dword [esp + 0x1ec]
mov dword [eax], 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004e97a0
mov al, 1
jmp 0x4ead7a
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004e97a0
xor al, al
jmp 0x4ead7a
mov ebx, dword [0x5fe614]
cmp ebx, edx
jne 0x4ea7b9
mov ebx, dword [0x5fe618]
cmp ecx, 0xfffffe3e
je 0x4ea7e2
cmp ecx, 0xfffffe3d
je 0x4ea7e2
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x14]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
jmp 0x4ea50a
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
jmp 0x4ea50a
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x4ea96a
sub eax, 0x10000
jne 0x4ea832
mov ebx, dword [edi + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x16c]
mov dword [esp + 0x1c], ebx
call fcn.00503930
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x4ea840
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x4ea773
mov ebp, dword [eax + 8]
push 8
push 8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0x20], ebx
call fcn.004e7250
lea ecx, [esp + 0xd8]
push ecx
mov ecx, esi
call fcn.004e7b00
test byte [edi + 0x28], 1
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
jne 0x4ea8d3
test al, 8
jne 0x4ea8cd
lea ecx, [esp + 0x1c]
call fcn.004899e0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x20]
lea ebx, [ebp + 0x14]
mov ecx, ebx
mov byte [esp + 0x1dc], 2
call eax
test al, al
je 0x4ea8bc
push ebx
lea ecx, [esp + 0x20]
call fcn.0040c6bd
lea ecx, [esp + 0x1c]
push ecx
call fcn.0049dc50
add esp, 4
mov dword [edi + 0x34], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.00493df0
test byte [edi + 0x28], 1
je 0x4ea8dc
call fcn.004a79e0
cmp eax, esi
je 0x4ea92d
test byte [esp + 0x14], 8
jne 0x4ea92d
lea ecx, [esp + 0x1c]
call fcn.004899e0
mov edx, dword [ebp]
mov eax, dword [edx + 0x20]
mov ecx, ebp
mov byte [esp + 0x1dc], 3
call eax
test al, al
je 0x4ea91c
push ebp
lea ecx, [esp + 0x20]
call fcn.0040c6bd
lea ecx, [esp + 0x1c]
push ecx
call fcn.0049dc50
add esp, 4
mov dword [edi + 0x30], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.00493df0
cmp dword [ebp + 0x2c], 0
je 0x4ea958
lea ecx, [ebp + 0x28]
call fcn.0049b780
mov edx, dword [edi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1ec]
mov dword [eax], 2
jmp 0x4ea773
mov ecx, dword [esp + 0x1ec]
mov dword [ecx], 0
jmp 0x4ea773
movzx edx, byte [esi + 0x17c]
mov eax, dword [esp + 0x1ec]
neg edx
sbb edx, edx
and edx, 0x20
mov dword [eax], edx
jmp 0x4ea773
cmp eax, 0xfffffffb
je 0x4eaa1d
cmp eax, 0xfffffffd
je 0x4eaa1d
cmp eax, 0xfffffffe
jne case.0x4ea42c.529
call dword [sym.imp.USER32.dll_GetMessagePos]
movzx ecx, ax
shr eax, 0x10
push 1
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x114]
push edx
push eax
push ebp
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x3b0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call edx
test dword [esp + 0x14], 0x100
je 0x4ea508
mov eax, dword [esp + 0x34]
mov ebx, dword [0x5fe630]
mov dword [esp + 0xc0], eax
jmp 0x4ea50a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je case.0x4ea42c.529
test byte [esp + 0x24], 0x46
je 0x4ea508
cmp dword [edi + 8], 0xfffffffd
mov edx, dword [esp + 0x28]
mov ebx, dword [0x5fe620]
mov dword [esp + 0xc0], edx
je 0x4eaa82
mov ebx, dword [0x5fe624]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
jmp 0x4ea50a
cmp byte [esp + 0x7c], 0
je case.0x4ea562.453
push 0x38
call fcn.005047e7
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 4
cmp eax, ebp
je 0x4eaad4
lea ecx, [esp + 0xc0]
push ecx
push esi
mov ecx, eax
call fcn.004e7770
jmp 0x4eaad6
xor eax, eax
push ebp
push ebp
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x1ec], 0
mov dword [esi + 0x180], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004fbb30
mov ecx, dword [esi + 0x180]
call fcn.004fba60
jmp case.0x4ea562.453
mov edi, dword [edi + 0x34]
cmp edi, ebp
je 0x4eab1c
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov bl, 1
jmp case.0x4ea562.453
mov al, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
xor ecx, ecx
test al, al
sete cl
mov dword [edx], ecx
test al, al
je 0x4eac00
mov eax, dword [esi + 0x114]
push ebp
push ebp
push 0x110f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, ebp
je case.0x4ea562.453
mov eax, dword [esi + 0x164]
cmp eax, ebp
je 0x4eab76
cmp dword [eax + 0x114], ebp
je 0x4eab76
mov ecx, esi
call fcn.004e8b90
cmp dword [esi + 0x164], ebp
jne 0x4eabb4
push 0x1b4
call fcn.005047e7
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 5
cmp eax, ebp
je 0x4eaba4
mov ecx, eax
call fcn.004ac810
jmp 0x4eaba6
xor eax, eax
mov byte [esp + 0x1dc], 0
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
mov dword [eax + 0x2c], esi
mov eax, dword [esi + 0x164]
mov dword [eax + 0x114], edi
mov ecx, dword [esi + 0x164]
push edi
call fcn.004a32f0
mov ecx, dword [esi + 0x164]
mov eax, dword [ecx]
mov edx, dword [eax + 0xb0]
call edx
mov ecx, dword [esi + 0x164]
mov edx, dword [ecx]
or eax, 0x400
push eax
mov eax, dword [edx + 0xac]
call eax
jmp case.0x4ea562.453
mov dword [esi + 0x168], ebp
jmp case.0x4ea562.453
movzx ecx, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
mov dword [edx], ecx
mov ecx, esi
mov bl, 1
call fcn.004e8b90
jmp case.0x4ea562.453
mov ecx, dword [esp + 0x1ec]
xor eax, eax
cmp byte [esp + 0x7c], al
sete al
mov dword [ecx], eax
jmp case.0x4ea562.453
mov edx, dword [edi + 0x3c]
mov eax, dword [esi]
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2dc]
push ecx
mov ecx, esi
call edx
cmp eax, 0xffffffff
je case.0x4ea562.453
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004e80e0
jmp case.0x4ea562.453
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.004e7eb0
mov ebp, eax
test ebp, ebp
je case.0x4ea562.453
test byte [edi + 0xc], 2
je 0x4eacbf
mov eax, dword [esi]
mov edx, dword [eax + 0x31c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
push eax
mov ecx, ebp
call fcn.004e7290
mov dword [edi + 0x24], eax
test byte [edi + 0xc], 0x20
je case.0x4ea562.453
mov edx, dword [esi]
mov edx, dword [edx + 0x31c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
mov ecx, ebp
call fcn.004e7290
mov dword [edi + 0x28], eax
jmp case.0x4ea562.453
cmp byte [esp + 0x7c], 0
je case.0x4ea562.453
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.004a8730
jmp case.0x4ea562.453
cmp eax, 0xfffffffb
je 0x4ead22
cmp eax, 0xfffffffd
jne case.0x4ea562.453
mov ecx, dword [esp + 0x1ec]
movzx eax, bl
mov dword [ecx], eax
jmp case.0x4ea562.453
mov edx, dword [esp + 0x1ec]
mov dword [edx], 1
mov esi, dword [esi + 0x114]
mov bl, 1
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4ea562.453
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1e4]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004bf4c0
mov bl, al
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004e97a0
mov al, bl
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret 0xc