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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov ebp, dword [esi + 0x24]
mov ebx, dword [esi + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x48]
push edi
movzx edi, ax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x4c]
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 + 0x54], 0
je 0x4d027d
mov eax, dword [esi + 0x54]
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 + 0x54]
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 0x4d02cf
cmp dword [esi + 0x60], 1
jbe 0x4d02cf
mov esi, dword [esi + 0x5c]
test esi, esi
je 0x4d02cf
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, esi
cmp ecx, dword [eax + 0xc]
mov esi, dword [esi + 4]
jg 0x4d02a9
jl 0x4d02a3
cmp edx, dword [eax + 8]
jae 0x4d02a9
test esi, esi
jne 0x4d0292
jmp 0x4d02cf
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 0x4d02e1
mov eax, ebx
shr eax, 8
and eax, 0xf
jmp 0x4d02e3
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 0x4d030d
mov edx, ebx
shr edx, 8
movzx edx, dl
shr edx, 4
jmp 0x4d0312
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 0x4d032c
movzx eax, bl
and eax, 0xf
jmp 0x4d0331
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 0x4d0352
movzx ecx, bl
shr ecx, 4
jmp 0x4d0357
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 0x4d0390
mov edx, dword [esp + 0x74]
lea ebx, [ebx]
test edx, edx
jne 0x4d039e
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x10], eax
jmp 0x4d03af
cmp edx, 1
jne 0x4d0515
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x14], ecx
jae 0x4d0515
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 0x4d046f
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 0x4d046f
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 0x4d046f
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 0x4d04b5
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.004cfa10
mov eax, dword [esp + 0x30]
add eax, edi
add esp, 0x18
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
jl 0x4d0386
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.004cfa10
mov eax, dword [esp + 0x8c]
add esp, 0x18
test ebx, ebx
jne 0x4d04f8
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 0x4d0386
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x1c