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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov ebp, dword [esi + 8]
mov ebx, dword [esi + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x44]
push edi
movzx edi, ax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x30], edx
shr eax, 0x10
movzx edx, cx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], eax
xor eax, eax
shr ecx, 0x10
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x30], eax
push edx
mov eax, edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
call edi
cmp dword [esi + 0x50], 0
je 0x4cda5d
mov eax, dword [esi + 0x50]
movzx ecx, word [eax + 0x12]
movzx edx, word [eax + 0x10]
movzx ebx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
push edx
mov eax, edx
push eax
mov dword [esp + 0x40], ebx
call edi
mov esi, dword [esi + 0x50]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jmp 0x4cdaaf
cmp dword [esi + 0x60], 1
jbe 0x4cdaaf
mov esi, dword [esi + 0x5c]
test esi, esi
je 0x4cdaaf
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, esi
cmp ecx, dword [eax + 0xc]
mov esi, dword [esi + 4]
jg 0x4cda89
jl 0x4cda83
cmp edx, dword [eax + 8]
jae 0x4cda89
test esi, esi
jne 0x4cda72
jmp 0x4cdaaf
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov cl, byte [esp + 0x74]
test cl, cl
je 0x4cdac1
mov eax, ebx
shr eax, 8
and eax, 0xf
jmp 0x4cdac3
xor eax, eax
mov esi, dword [esp + 0x70]
mov edx, dword [esi + eax*4]
mov eax, ebx
mov dword [esp + 0x30], edx
shr eax, 0x18
mov dl, al
and dl, 0xf
test cl, cl
mov byte [esp + 0x30], dl
je 0x4cdaed
mov edx, ebx
shr edx, 8
movzx edx, dl
shr edx, 4
jmp 0x4cdaf2
mov edx, 1
mov edx, dword [esi + edx*4]
shr al, 4
test cl, cl
mov dword [esp + 0x34], edx
mov byte [esp + 0x34], al
je 0x4cdb0c
movzx eax, bl
and eax, 0xf
jmp 0x4cdb11
mov eax, 2
mov edx, dword [esi + eax*4]
mov eax, ebx
mov dword [esp + 0x38], edx
shr eax, 0x10
mov dl, al
and dl, 0xf
test cl, cl
mov byte [esp + 0x38], dl
je 0x4cdb32
movzx ecx, bl
shr ecx, 4
jmp 0x4cdb37
mov ecx, 3
mov ecx, dword [esi + ecx*4]
mov dword [esp + 0x3c], ecx
shr al, 4
xor edx, edx
xor ecx, ecx
mov ch, byte [ebp + 2]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov ebx, 1
mov dword [esp + 0x5c], eax
mov cl, byte [ebp + 3]
mov dword [esp + 0x60], ecx
jmp 0x4cdb70
mov edx, dword [esp + 0x74]
lea ebx, [ebx]
test edx, edx
jne 0x4cdb7e
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x10], eax
jmp 0x4cdb8f
cmp edx, 1
jne 0x4cdcf5
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x14], ecx
jae 0x4cdcf5
mov esi, dword [esp + edx*4 + 0x10]
mov al, byte [esi + ebp]
mov cl, bl
add cl, cl
add cl, cl
shr al, cl
sub esi, ebx
add esi, 1
xor ecx, ecx
and al, 0xf
test ebx, ebx
sete cl
mov dword [esp + edx*4 + 0x10], esi
movzx esi, al
cmp esi, 4
mov ebx, ecx
jae 0x4cdc4f
mov edi, dword [esp + edx*4 + 0x10]
mov al, byte [edi + ebp]
mov cl, bl
add cl, cl
add cl, cl
shr al, cl
sub edi, ebx
xor ecx, ecx
add edi, 1
and al, 0xf
test ebx, ebx
sete cl
movzx eax, al
shl esi, 4
or esi, eax
cmp esi, 0x10
mov dword [esp + edx*4 + 0x10], edi
mov ebx, ecx
jae 0x4cdc4f
mov al, byte [edi + ebp]
mov cl, bl
add cl, cl
add cl, cl
shr al, cl
sub edi, ebx
xor ecx, ecx
add edi, 1
and al, 0xf
test ebx, ebx
sete cl
movzx eax, al
shl esi, 4
or esi, eax
cmp esi, 0x40
mov dword [esp + edx*4 + 0x10], edi
mov ebx, ecx
jae 0x4cdc4f
mov al, byte [edi + ebp]
mov cl, bl
add cl, cl
add cl, cl
shr al, cl
sub edi, ebx
xor ecx, ecx
add edi, 1
and al, 0xf
test ebx, ebx
sete cl
mov dword [esp + edx*4 + 0x10], edi
movzx edx, al
shl esi, 4
or esi, edx
cmp esi, 0x100
mov ebx, ecx
jb 0x4cdc95
mov ecx, esi
and ecx, 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + ecx*4 + 0x34]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov edi, esi
push edx
shr edi, 2
push eax
mov eax, edi
call fcn.004cd0d0
mov eax, dword [esp + 0x30]
add eax, edi
add esp, 0x18
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
jl 0x4cdb66
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
and esi, 3
lea edx, [esp + esi*4 + 0x34]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x70]
push ecx
sub eax, ecx
mov ecx, dword [esp + 0x78]
push ecx
push edx
call fcn.004cd0d0
mov eax, dword [esp + 0x8c]
add esp, 0x18
test ebx, ebx
jne 0x4cdcd8
mov ebx, 1
add dword [esp + eax*4 + 0x10], ebx
add dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x48]
mov edx, 1
sub edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x74], edx
jmp 0x4cdb66
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c