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

Disassembly:
push 0xffffffffffffffff
push 0x53aee4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], esi
mov dword [esp + 8], edi
call fcn.0047e420
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.00485760
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], edi
call fcn.0047d940
test eax, eax
jle 0x4d1f7a
push ebx
push ebp
mov ecx, dword [esi + 8]
push edi
call fcn.0047d950
mov ebx, eax
push 0
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x78]
test eax, eax
je 0x4d1f63
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x50]
mov edx, dword [eax]
xor eax, eax
mov ecx, dword [edx - 8]
test ecx, ecx
sete al
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.00511eeb
test ebp, ebp
jne 0x4d1f63
mov ecx, dword [ebx + 0x150]
test ecx, ecx
je 0x4d1f63
call fcn.004f2670
cmp eax, dword [esp + 0x9c]
jne 0x4d1f63
mov ecx, ebx
call fcn.00477340
test al, 2
jne 0x4d1f63
lea ecx, [ebx + 0xbc]
mov ebp, dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x5c]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], eax
push ecx
lea eax, [esp + 0x70]
push edx
push eax
call ebp
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4d1f63
mov eax, dword [ebx + 0x150]
mov esi, dword [esp + 0x28]
add eax, 0x30
mov esi, dword [esi + 0x63c]
mov ecx, dword [eax]
mov dword [esp + 0x1c], esi
mov edi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov esi, eax
mov dword [esp + 0x58], eax
sub esi, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x80]
add esi, 2
push ecx
push edx
mov dword [esp + 0x5c], esi
call ebp
test eax, eax
je 0x4d1cba
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ebp, 1
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
sar eax, 1
lea edi, [edx - 6]
mov esi, eax
jmp 0x4d1d79
mov ecx, ebx
call fcn.00475c40
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
cmp eax, 4
jne 0x4d1cfa
mov eax, esi
sub eax, edi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
sub edx, ecx
cmp edx, eax
jle 0x4d1cfa
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
add eax, ecx
lea edi, [esi - 2]
cdq
sub eax, edx
mov ebp, 5
sar eax, 1
mov esi, eax
jmp 0x4d1d79
cmp dword [ebx + 0xf4], 0xa
jne 0x4d1d11
lea edi, [esi - 2]
mov esi, dword [esp + 0x44]
mov ebp, 5
jmp 0x4d1d79
lea eax, [ecx + ebp]
mov ebp, esi
cdq
sub eax, edx
sub ebp, edi
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add edx, eax
sar ecx, 1
add edx, edi
cmp ecx, edx
jge 0x4d1d3f
mov ecx, dword [esp + 0x3c]
add edi, 2
lea esi, [ecx + 0xb]
jmp 0x4d1d74
lea edx, [ebp + ebp]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, edi
cmp ecx, edx
jle 0x4d1d63
mov ecx, dword [esp + 0x3c]
lea edi, [esi - 2]
lea esi, [ecx + 0xb]
jmp 0x4d1d74
lea eax, [esi + edi]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
lea esi, [edx + 0xb]
mov edi, eax
mov ebp, 4
push 0x5c
call fcn.00511c2c
add esp, 4
mov dword [esp + 0x1c], eax
xor edx, edx
cmp eax, edx
mov dword [esp + 0x94], edx
je 0x4d1df0
mov eax, dword [ebx + 0x98]
cmp eax, 0xffffffff
jne 0x4d1dae
mov ecx, dword [ebx + 0x154]
cmp ecx, edx
je 0x4d1dae
call fcn.00474e80
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
or al, 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x50]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [esp + 0x20]
push ebp
push edi
push esi
push eax
push ebx
mov ebx, dword [esp + 0x30]
push ebx
mov byte [esp + 0xb0], 1
call fcn.00482bb0
mov dword [esp + 0x1c], eax
jmp 0x4d1df8
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov al, byte [esp + 0x10]
mov dword [esp + 0x94], 0xffffffff
test al, 1
je 0x4d1e1e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.00511eeb
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, edx
mov dword [esp + 0x34], esi
lea ebp, [esi + 1]
test ebp, ebp
jne 0x4d1e56
test eax, eax
je 0x4d1e49
push eax
mov dword [esp + 0x38], edx
call fcn.00511c55
add esp, 4
mov dword [ebx + 0x2c], 0
xor eax, eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
jmp 0x4d1f51
test eax, eax
jne 0x4d1e8e
lea edi, [ebp*4]
push edi
call fcn.00511c2c
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x2c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x30], ebp
jmp 0x4d1f51
mov ecx, dword [ebx + 0x34]
cmp ebp, ecx
jg 0x4d1ebc
cmp edx, ebp
jge 0x4d1eac
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x30], ebp
jmp 0x4d1f51
jle 0x4d1eb4
sub edx, ebp
mov dword [esp + 0x34], edx
mov dword [ebx + 0x30], ebp
jmp 0x4d1f51
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x4d1ee6
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4d1eda
mov eax, 4
jmp 0x4d1ee6
cmp eax, 0x400
jle 0x4d1ee6
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x14], eax
jl 0x4d1ef4
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.00511c2c
mov ecx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x2c]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x34], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x30]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x2c]
push eax
call fcn.00511c55
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x34], edx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [eax + esi*4], ecx
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 8]
inc edi
mov dword [esp + 0x20], edi
call fcn.0047d940
cmp edi, eax
jl 0x4d1b7f
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x88
ret 4