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

Disassembly:
push 0xffffffffffffffff
push 0x52dac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
mov ecx, dword [esp + 0x80]
push edi
mov eax, 0x64
xor edi, edi
mov dword [esp + 0x18], eax
cmp ecx, eax
mov dword [esp + 0x14], edi
lea eax, [esp + 0x84]
jl 0x4ce3b5
lea eax, [esp + 0x18]
cmp dword [eax], edi
jg 0x4ce3bd
lea eax, [esp + 0x14]
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4ce8ca
mov ebp, dword [esp + 0x60]
xor esi, esi
mov ecx, ebp
call fcn.004e4820
mov ecx, ebp
mov ebx, eax
call fcn.0048a1c0
mov ecx, dword [esp + 0x10]
mov ebp, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.004e4820
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
call fcn.0048a1c0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x10]
call fcn.004cd700
test al, al
je 0x4ce8ca
mov ecx, dword [esp + 0x10]
call fcn.004cd720
cmp eax, 0x18
jl 0x4ce8ca
mov ecx, dword [esp + 0x60]
call fcn.004cd700
test al, al
je 0x4ce8ca
mov ecx, dword [esp + 0x60]
call fcn.004cd720
cmp eax, 0x20
jne 0x4ce8ca
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
call fcn.004ee8e0
add esp, 0x20
test al, al
je 0x4ce8ca
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4ce8ca
mov ecx, dword [esp + 0x10]
call fcn.004cd720
cdq
and edx, 7
add eax, edx
lea edx, [esp + 0x64]
sar eax, 3
push edx
mov dword [esp + 0x1c], eax
call fcn.004ee8c0
mov esi, eax
lea eax, [esp + 0x78]
push eax
call fcn.004ee8c0
add esp, 8
cmp esi, eax
jne 0x4ce5cf
lea ecx, [esp + 0x64]
push ecx
call fcn.004ee8d0
lea edx, [esp + 0x78]
mov esi, eax
push edx
call fcn.004ee8d0
add esp, 8
cmp esi, eax
jne 0x4ce5cf
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
sub eax, esi
add eax, edx
cmp ebp, ecx
mov dword [esp + 0x84], eax
jge 0x4ce8ca
jmp 0x4ce543
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
sub ecx, edx
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x64]
push eax
call fcn.004cdd30
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push ebp
push edx
mov esi, eax
call fcn.004cdd30
mov edi, dword [esp + 0x40]
mov ebx, eax
cmp edi, dword [esp + 0x48]
jge 0x4ce5bd
mov eax, dword [esp + 0x14]
cmp eax, 0x64
jne 0x4ce587
xor edx, edx
mov dl, byte [esi + 3]
jmp 0x4ce5a0
xor ecx, ecx
mov cl, byte [esi + 3]
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push esi
push ebx
call fcn.004e8560
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
add esp, 0xc
inc edi
add ebx, edx
add esi, 4
cmp edi, eax
jl 0x4ce577
mov eax, dword [esp + 0x4c]
inc ebp
cmp ebp, eax
jl 0x4ce53c
jmp 0x4ce8ca
lea ecx, [esp + 0x40]
push ecx
call fcn.004ee8c0
mov esi, eax
xor ebp, ebp
add esp, 4
mov edi, str._f9kQ
or ebx, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x30], edi
je 0x4ce60a
lea edx, [esi*4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
jmp 0x4ce612
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x58], ebp
push eax
call fcn.004ee8d0
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x24], edi
je 0x4ce647
lea ecx, [esi*4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
jmp 0x4ce64f
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
cmp ebx, eax
mov byte [esp + 0x58], 1
mov edi, ebx
jge 0x4ce72b
lea edx, [esp + 0x74]
push edx
call fcn.004ee8d0
mov ebx, dword [esp + 0x6c]
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x68]
sub eax, ebx
push ecx
imul esi, eax
call fcn.004ee8d0
mov ecx, eax
mov eax, esi
cdq
idiv ecx
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x78]
add esi, eax
mov dword [esp + 0x84], esi
lea edx, [esp + 0x64]
push edx
call fcn.004ee8d0
mov edx, dword [esp + 0x7c]
mov ebx, eax
mov eax, esi
lea ecx, [esp + 0x78]
sub eax, edx
push ecx
inc eax
imul ebx, eax
call fcn.004ee8d0
mov ecx, eax
mov eax, ebx
cdq
idiv ecx
mov edx, dword [esp + 0x70]
add esp, 8
add eax, edx
cmp eax, edi
jne 0x4ce6d9
inc esi
jmp 0x4ce6a0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x84], esi
call fcn.0048a1c0
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
cmp esi, eax
lea eax, [esp + 0x84]
jl 0x4ce701
lea eax, [esp + 0x1c]
cmp dword [eax], ebp
jg 0x4ce709
lea eax, [esp + 0x20]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
mov edx, edi
sub edx, esi
inc edi
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x4c]
cmp edi, eax
jl 0x4ce666
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
mov edi, eax
jge 0x4ce806
lea edx, [esp + 0x74]
push edx
call fcn.004ee8c0
mov ebx, dword [esp + 0x68]
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x68]
sub eax, ebx
push ecx
imul esi, eax
call fcn.004ee8c0
mov ecx, eax
mov eax, esi
cdq
idiv ecx
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x74]
add esi, eax
mov dword [esp + 0x84], esi
lea edx, [esp + 0x64]
push edx
call fcn.004ee8c0
mov edx, dword [esp + 0x78]
mov ebx, eax
mov eax, esi
lea ecx, [esp + 0x78]
sub eax, edx
push ecx
inc eax
imul ebx, eax
call fcn.004ee8c0
mov ecx, eax
mov eax, ebx
cdq
idiv ecx
mov edx, dword [esp + 0x6c]
add esp, 8
add eax, edx
cmp eax, edi
jne 0x4ce7b0
inc esi
jmp 0x4ce777
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x84], esi
call fcn.004e4820
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
cmp esi, eax
lea eax, [esp + 0x84]
jl 0x4ce7d8
lea eax, [esp + 0x20]
cmp dword [eax], ebp
jg 0x4ce7e0
lea eax, [esp + 0x1c]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, edi
sub edx, esi
inc edi
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x48]
cmp edi, eax
jl 0x4ce73d
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp ebx, dword [esp + 0x4c]
jge 0x4ce8a8
mov ecx, dword [esp + 0x10]
push ebx
push eax
call fcn.004cdd30
mov ecx, dword [esp + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov edi, eax
jge 0x4ce899
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, ebx
sub edx, esi
mov edx, dword [ecx + edx*4]
mov ecx, edi
push edx
mov edx, dword [esp + 0x38]
sub ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x64]
push eax
call fcn.004cdd30
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, 0x64
jne 0x4ce862
xor edx, edx
mov dl, byte [esi + 3]
jmp 0x4ce87b
xor ecx, ecx
mov cl, byte [esi + 3]
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
push esi
push ebp
call fcn.004e8560
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
add esp, 0xc
inc edi
add ebp, ecx
cmp edi, eax
mov eax, dword [esp + 0x40]
jl 0x4ce82b
mov ecx, dword [esp + 0x4c]
inc ebx
cmp ebx, ecx
jl 0x4ce810
xor ebp, ebp
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4ce8b9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x4ce8ca
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 0x28