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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
push edi
xor edi, edi
cmp ebx, edi
je 0x4e7451
mov ebp, dword [esp + 0xc4]
cmp ebp, edi
je 0x4e7451
mov eax, dword [esp + 0xd0]
cmp eax, edi
je 0x4e745d
cmp byte [eax], 0x25
jb 0x4e745d
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret
mov eax, dword [ebx]
movzx eax, word [eax + 0xe]
mov ecx, dword [ebp]
movzx ecx, word [ecx + 0xe]
lea edx, [eax - 8]
cmp edx, 0x18
ja 0x4e7451
lea edx, [ecx - 8]
cmp edx, 0x18
ja 0x4e7451
shr eax, 3
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
shr ecx, 3
push esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
cmp eax, edi
je 0x4e74e4
mov ecx, dword [eax]
mov edx, dword [eax + 8]
cmp ecx, edx
mov esi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jle 0x4e74cb
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 1
cmp esi, eax
jle 0x4e7505
mov ecx, esi
mov edi, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
jmp 0x4e7505
push ebx
call fcn.0041b850
add esp, 4
push eax
push ebx
call fcn.0041b830
add esp, 4
push eax
push edi
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4e7561
mov ecx, dword [eax]
mov edx, dword [eax + 8]
cmp ecx, edx
mov esi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
jle 0x4e7544
mov dword [esp + 0x58], ecx
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x50], edx
sete cl
mov dword [esp + 0x1c], ecx
cmp esi, eax
jle 0x4e7584
xor edx, edx
test edi, edi
sete dl
mov ecx, esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov edi, edx
mov dword [esp + 0x34], edi
jmp 0x4e7584
push ebp
call fcn.0041b850
add esp, 4
push eax
push ebp
call fcn.0041b830
add esp, 4
push eax
push 0
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [sym.imp.USER32.dll_IsRectEmpty]
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4e78ec
lea edx, [esp + 0x50]
push edx
call esi
test eax, eax
jne 0x4e78ec
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0x1c]
push ebp
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
call fcn.0041b850
add esp, 4
push eax
push ebp
call fcn.0041b830
add esp, 4
push eax
push 0
push 0
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esp + 0xd0]
test esi, esi
je 0x4e7648
push esi
call fcn.0041b850
add esp, 4
push eax
push esi
call fcn.0041b830
add esp, 4
push eax
push 0
push 0
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xb0]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4e78ec
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
sub ebp, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
sub esi, ebx
xor edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], ebp
je 0x4e7689
neg eax
mov ecx, dword [0x5cd6c0]
mov edx, eax
add eax, 0x200
and eax, 0x7ff
and edx, 0x7ff
mov edi, dword [ecx + edx*4]
mov ecx, dword [ecx + eax*4]
mov eax, ecx
imul eax, esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x48], ecx
test eax, eax
jg 0x4e76bd
neg eax
mov edx, edi
imul edx, ebp
test edx, edx
jg 0x4e76c8
neg edx
mov ebp, edx
lea ebp, [eax + ebp + 0x8000]
mov eax, edi
imul eax, esi
sar ebp, 0x10
test eax, eax
jg 0x4e76df
neg eax
imul ecx, dword [esp + 0x3c]
test ecx, ecx
jg 0x4e76ea
neg ecx
lea ecx, [ecx + eax + 0x8000]
mov eax, ebp
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
sar ecx, 0x10
sar esi, 1
sub eax, esi
add ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sar edi, 1
sub edx, edi
add eax, edx
add ecx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x40]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x84]
mov dword [esp + 0x88], eax
push edx
lea eax, [esp + 0x2c]
add ebp, ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4e78ec
cmp dword [esp + 0x1c], 0
je 0x4e77b1
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x2c]
jmp 0x4e77bc
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x80]
sub esi, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x20], esi
je 0x4e77d6
mov eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x30]
jmp 0x4e77e1
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x84]
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x54]
sub edi, eax
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4e78ec
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea eax, [eax*4 - 4]
dec esi
push edx
or eax, esi
mov esi, dword [esp + 0xc4]
push ecx
sub ebp, ecx
sub ebx, edx
push esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], eax
call fcn.0041b870
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc]
neg eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xe0]
add esp, 0xc
mov byte [esp + 0x10], 0
test eax, eax
je 0x4e7879
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00462c00
mov cl, byte [esp + 0x16]
add esp, 4
test al, 2
je 0x4e7892
test cl, cl
jbe 0x4e78ec
movzx eax, byte [esp + 0x10]
add eax, 0xfffffffd
mov dword [esp + 0x7c], 0
mov dl, 7
cmp eax, 0x21
ja case.0x4e78b4.5
movzx eax, byte [eax + 0x4e7c30]
jmp dword [eax*4 + 0x4e7c00]
cmp cl, 0xff
jb case.0x4e78b4.5
mov byte [esp + 0x10], 0
jmp case.0x4e78b4.5
cmp cl, 0xff
jb case.0x4e78b4.5
mov byte [esp + 0x10], 1
jmp case.0x4e78b4.5
test byte [esp + 0x11], 0xf
jne case.0x4e78b4.5
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret
cmp byte [esp + 0x13], 0
ja case.0x4e78b4.7
mov byte [esp + 0x10], dl
xor ecx, ecx
cmp dword [esp + 0xd0], ecx
setne cl
mov dword [esp + 0x7c], ecx
jmp case.0x4e78b4.5
movzx eax, byte [esp + 0x11]
dec eax
cmp eax, 5
ja case.default.0x4e7924
jmp dword [eax*4 + 0x4e7c54]
mov eax, dword [0x5cd6b0]
mov dword [0xb53cdc], eax
jmp 0x4e797d
mov ecx, dword [0x5cd6a8]
mov dword [0xb53cdc], ecx
jmp 0x4e797d
mov eax, dword [0x5cccdc]
mov dword [0xb53cdc], eax
jmp 0x4e797d
mov ecx, dword [0x5cccd8]
mov dword [0xb53cdc], ecx
jmp 0x4e797d
mov eax, dword [0x5cd6a0]
mov dword [0xb53cdc], eax
jmp 0x4e797d
mov ecx, dword [0x5cccd4]
mov dword [0xb53cdc], ecx
jmp 0x4e797d
mov byte [esp + 0x10], dl
cmp byte [esp + 0x13], 0
ja case.0x4e78b4.5
mov byte [esp + 0x10], dl
jmp case.0x4e78b4.5
mov edx, dword [0x5cd6a8]
mov dword [0xb53cdc], edx
jmp case.0x4e78b4.5
add byte [esp + 0x10], 0xfe
mov eax, dword [0x5cccdc]
jmp 0x4e79d4
mov ecx, dword [0x5cccd8]
add byte [esp + 0x10], 0xfc
mov dword [0xb53cdc], ecx
jmp case.0x4e78b4.5
mov edx, dword [0x5cd6a0]
add byte [esp + 0x10], 0xfa
mov dword [0xb53cdc], edx
jmp case.0x4e78b4.5
add byte [esp + 0x10], 0xf8
mov eax, dword [0x5cccd4]
mov dword [0xb53cdc], eax
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
add eax, 0x28
mov dword [esp + 0x74], eax
mov eax, dword [esi]
add eax, 0x28
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x64], eax
je 0x4e7a00
sub ebp, dword [esp + 0x20]
dec ebp
jmp 0x4e7a06
mov ebp, dword [esp + 0x20]
neg ebp
cmp dword [esp + 0x34], 0
je 0x4e7a14
mov esi, ebx
sub esi, edi
dec esi
jmp 0x4e7a18
neg edi
mov esi, edi
mov ebx, dword [esp + 0x94]
mov eax, ebp
imul eax, dword [esp + 0x48]
mov edx, esi
imul edx, ebx
sub eax, edx
imul dword [esp + 0x38]
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov edi, edx
cdq
push edx
push eax
push edi
push ecx
call fcn.004f3ca0
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x98]
add eax, edx
shl eax, 0x10
add edi, eax
test byte [esp + 0x38], 1
je 0x4e7a64
add edi, 0x8000
mov eax, esi
imul ebp, ebx
imul eax, dword [esp + 0x48]
add eax, ebp
imul dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.004f3ca0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x90]
add eax, edx
shl eax, 0x10
add esi, eax
test cl, 1
je 0x4e7aa9
add esi, 0x8000
mov eax, dword [esp + 0x48]
imul eax, dword [esp + 0x38]
cdq
idiv dword [esp + 0x4c]
mov ebp, eax
mov eax, ebx
imul eax, ecx
cdq
idiv dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, ebx
imul eax, dword [esp + 0x38]
cdq
idiv dword [esp + 0x4c]
mov ecx, eax
mov eax, dword [esp + 0x48]
imul eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x3c]
neg ecx
cmp dword [esp + 0x1c], 0
je 0x4e7af8
mov edx, dword [esp + 0x20]
neg ebp
neg edx
mov dword [esp + 0x20], edx
cmp dword [esp + 0x34], 0
je 0x4e7b03
neg eax
neg ecx
cmp dword [esp + 0x7c], 0
movzx edx, byte [esp + 0x10]
je 0x4e7b8e
mov ebx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x68]
push ebx
lea ebx, [esp + 0x18]
push ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x88]
push ebp
push esi
push edi
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x98]
sub edx, 7
push eax
mov eax, dword [esp + 0x80]
shl edx, 4
add edx, dword [esp + 0xb4]
push ecx
mov ecx, dword [edx*4 + 0x58c380]
push eax
call ecx
add esp, 0x44
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xac
ret
shl edx, 4
add edx, dword [esp + 0x78]
mov edx, dword [edx*4 + 0x58bc40]
test edx, edx
je 0x4e7bf0
mov ebx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x68]
push ebx
lea ebx, [esp + 0x18]
push ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x88]
push ebp
push esi
push edi
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call edx
add esp, 0x40
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xac
ret