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

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x10], edi
je 0x479e54
mov esi, dword [esp + 0x6c]
mov ecx, eax
mov ebx, dword [ecx + 0x18]
mov eax, dword [eax]
add ecx, 8
cmp ebx, esi
jne 0x479e50
mov esi, dword [esp + 0x70]
cmp dword [ecx + 0x14], esi
je 0x479e95
cmp eax, edx
jne 0x479e35
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esi + 0x5c]
call fcn.00478c80
mov eax, dword [esi + 0x1c]
mov ebp, dword [esp + 0x78]
cmp eax, 3
setg byte [esp + 0x13]
jmp 0x479ed4
mov eax, dword [esp + 0x68]
mov esi, dword [eax + 0x7c]
mov eax, dword [eax + 0x80]
neg esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x64]
push edx
neg eax
push esi
mov dword [esp + 0x38], eax
call fcn.00478c80
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret 0x18
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 8]
test edi, edi
mov bl, 1
je 0x479f85
mov eax, edi
mov edi, dword [edi]
lea esi, [eax + 8]
cmp ebp, dword [esi + 0x18]
jne 0x479f71
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x479f71
mov al, byte [esp + 0x13]
test al, al
je 0x479f55
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub edx, ecx
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
jmp 0x479f6f
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub ecx, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x24], edx
xor bl, bl
test edi, edi
jne 0x479ee1
test bl, bl
mov esi, dword [esp + 0x6c]
je 0x479ed0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x48]
push eax
add ecx, 4
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ebp
call fcn.00479400
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x80]
mov esi, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
neg ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], ecx
neg edx
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], edx
call fcn.00478c80
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret 0x18