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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x38], edx
mov ecx, dword [eax]
mov eax, dword [0x58f8b4]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], ebx
cmp eax, dword [ecx + 4]
jle 0x4a7ba7
push 0x58f8b4
call fcn.00500233
cmp dword [0x58f8b4], 0xffffffff
pop ecx
jne 0x4a7ba7
push str.AlphaBlend
push str.msimg32.dll
call dword [0x53e3dc]
push eax
call dword [0x53e3e4]
push 0x58f8b4
mov dword [0x58f8b8], eax
call fcn.005001e9
pop ecx
mov eax, dword [0x58f8b8]
mov ecx, 0x4a66db
test eax, eax
cmove eax, ecx
cmp dword [esp + 0x38], 0
mov dword [0x58f8b8], eax
je 0x4a8e6e
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x38]
mov dword [esp + 0x18], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push edi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x58f8b8], 0
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x4a8525
cmp byte [ebp + 0x18], 0
mov cl, byte [ebp + 0x1c]
jne 0x4a7c1c
cmp cl, 0xff
jae 0x4a8525
xor eax, eax
mov byte [esp + 0x1a], cl
mov word [esp + 0x18], ax
mov byte [esp + 0x1b], 1
mov esi, dword [esp + 0x18]
mov dword [esp + 0x30], eax
cmp byte [ebp + 0x20], al
jne 0x4a7d2e
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx]
add eax, dword [ecx]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov edi, dword [esp + 0xc]
test eax, eax
je 0x4a7d32
cmp byte [ebp + 0x24], 0
jne 0x4a831f
cmp byte [ebp + 0x28], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edx
jne 0x4a8268
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x2c]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
sub edi, dword [esp + 0x64]
sub esi, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub esi, dword [esp + 0x30]
sub eax, ecx
sub ebx, dword [esp + 0x60]
sub eax, edx
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edi
sub eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x48]
push eax
mov eax, dword [esi]
add eax, ecx
push eax
push dword [esp + 0x28]
push edi
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0xc]
mov edx, dword [ebx]
test edx, edx
jle 0x4a7dbc
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4a7dbc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], eax
add eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a7dbc
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
push esi
push dword [ebx + 4]
mov dword [esp + 0x6c], ecx
push dword [ebx]
mov dword [esp + 0x74], eax
push dword [edi + 4]
push dword [edi]
push dword [esp + 0x28]
push eax
push ecx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x1c]
test edx, edx
jle 0x4a7e73
mov eax, dword [ebx]
add eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
lea eax, [ecx + edx]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x68], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a7e73
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x28]
push dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax + 8]
sub edi, dword [esp + 0x68]
sub eax, ecx
sub ebx, dword [esp + 0x64]
sub eax, edx
sub eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edi
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x28]
push edi
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 8], 0
jle 0x4a7f08
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4a7f08
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, dword [ebx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x60], eax
add eax, edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a7f08
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x5c]
push esi
push dword [ebx + 4]
mov dword [esp + 0x6c], edx
push dword [ebx + 8]
mov dword [esp + 0x74], ecx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, dword [ebx + 8]
push eax
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov edx, dword [ebx]
test edx, edx
jle 0x4a7fb5
mov ecx, dword [edi]
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a7fb5
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
sub edi, dword [esp + 0x64]
sub ebx, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
mov dword [esp + 0x68], ebx
sub eax, edx
mov dword [esp + 0x6c], edi
sub eax, dword [esi + 0xc]
push eax
mov eax, esi
push dword [eax]
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x28]
push edi
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
cmp dword [ebx + 8], 0
mov edi, dword [esp + 0x1c]
jle 0x4a8075
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, dword [ebx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8075
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
sub edi, dword [esp + 0x64]
sub ebx, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
mov dword [esp + 0x68], ebx
sub eax, edx
mov dword [esp + 0x6c], edi
sub eax, dword [esi + 0xc]
push eax
mov eax, esi
push dword [eax + 8]
lea eax, [ecx + edx]
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
sub eax, dword [ecx + 8]
push eax
push dword [esp + 0x28]
push edi
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jle 0x4a8108
cmp dword [ebx + 0xc], 0
jle 0x4a81c0
mov edx, dword [edi + 0xc]
mov eax, edx
sub eax, dword [ebx + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
add eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8108
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
sub edx, dword [esp + 0x5c]
push esi
push dword [ebx + 0xc]
mov dword [esp + 0x6c], edx
push dword [ebx]
mov dword [esp + 0x74], ecx
push eax
push dword [edi]
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
cmp dword [ebx + 0xc], 0
jle 0x4a81c0
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx]
add eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a81c4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x28]
push dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax + 8]
sub edi, dword [esp + 0x68]
sub eax, ecx
sub ebx, dword [esp + 0x64]
sub eax, edx
sub eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edi
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 0xc]
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x28]
push edi
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 8], 0
jle 0x4a8e56
cmp dword [ebx + 0xc], 0
jle 0x4a8e56
mov edx, dword [edi + 8]
mov eax, edx
sub eax, dword [ebx + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], edx
push eax
mov dword [esp + 0x74], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8e56
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x5c]
push esi
push dword [ebx + 0xc]
mov esi, dword [esp + 0x14]
push dword [ebx + 8]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov eax, dword [esi + 0xc]
sub eax, dword [ebx + 0xc]
push eax
mov eax, dword [esi + 8]
sub eax, dword [ebx + 8]
push eax
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
jmp 0x4a8e56
sub ecx, dword [ebx + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x68]
sub ecx, eax
dec edx
mov eax, ecx
mov dword [esp + 0x34], ecx
sub eax, dword [esp + 0x60]
add eax, edx
cdq
idiv ecx
mov dword [esp + 0x44], eax
test eax, eax
jle 0x4a7d32
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x18]
add edx, eax
add eax, ecx
mov dword [esp + 0x28], edx
mov edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
add edx, eax
mov eax, ecx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x68]
jle 0x4a82c7
mov ecx, dword [esp + 0x68]
sub eax, edx
add eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [edi]
mov edx, dword [ebx]
push esi
push eax
mov eax, dword [edi + 8]
sub eax, ecx
sub eax, edx
sub eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x38]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x50]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [0x58f8b8]
sub dword [esp + 0x44], 1
je 0x4a7d32
mov ecx, dword [esp + 0x34]
jmp 0x4a828f
mov ecx, dword [edi + 8]
sub ecx, dword [ebx + 8]
sub ecx, dword [ebx]
mov edx, dword [esp + 0x64]
sub ecx, dword [edi]
dec edx
cmp byte [ebp + 0x28], 0
mov dword [esp + 0x38], ecx
je 0x4a8473
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 4]
sub eax, dword [edi + 4]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
mov eax, ecx
sub eax, dword [esp + 0x5c]
add eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4a7d32
mov ecx, dword [esp + 0x68]
xor edx, edx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x60]
lea edi, [edx + eax]
add edx, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x3c], edx
cmp eax, ecx
jle 0x4a83b4
sub edx, eax
mov eax, ecx
add edx, ecx
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x44], 0
jle 0x4a845b
sub eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x5c]
lea eax, [ecx + esi]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x4c], ecx
add ecx, esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x34], ecx
mov ecx, eax
cmp dword [esp + 0x34], esi
mov esi, dword [esp + 0x18]
jle 0x4a840a
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
add ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push esi
push edx
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x6c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x80]
push eax
push ecx
push dword [esp + 0x38]
call dword [0x58f8b8]
sub dword [esp + 0x50], 1
je 0x4a8457
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
jmp 0x4a83d1
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x28], 1
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
jne 0x4a8385
jmp 0x4a7d32
mov eax, ecx
sub eax, dword [esp + 0x5c]
add eax, edx
cdq
idiv ecx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4a7d32
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x18]
add edx, eax
add eax, ecx
mov dword [esp + 0x40], edx
mov edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x64]
jle 0x4a84ca
mov eax, ecx
mov ecx, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x2c], ecx
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 4]
sub eax, ecx
push esi
sub eax, edx
sub eax, dword [ebx + 0xc]
push eax
push dword [esp + 0x30]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x44]
push dword [esp + 0x80]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x38]
call dword [0x58f8b8]
sub dword [esp + 0x3c], 1
je 0x4a7d32
mov ecx, dword [esp + 0x38]
jmp 0x4a848a
mov edi, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [esp + 0x30], edx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
cmp ecx, eax
jne 0x4a85d8
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 0xc]
sub ecx, dword [esi + 4]
sub eax, dword [edi + 4]
cmp eax, ecx
jne 0x4a85d8
cmp dword [ebx], edx
jne 0x4a85d8
cmp dword [ebx + 8], edx
jne 0x4a85d8
cmp dword [ebx + 4], edx
jne 0x4a85d8
cmp dword [ebx + 0xc], edx
jne 0x4a85d8
push edi
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8e56
mov eax, dword [esi + 4]
sub eax, dword [edi + 4]
add eax, dword [esp + 0x70]
push 0xcc0020
push eax
mov eax, dword [esi]
sub eax, dword [edi]
add eax, dword [esp + 0x74]
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
push eax
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4a8e56
cmp byte [ebp + 0x20], dl
jne 0x4a86d0
mov eax, dword [ebx]
add eax, dword [edi]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a86d0
cmp byte [ebp + 0x24], 0
jne 0x4a88bf
cmp byte [ebp + 0x28], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], edx
jne 0x4a8803
mov edx, dword [ebx]
mov eax, dword [esp + 0xc]
mov ebx, dword [ebx + 4]
sub dword [esp + 0x18], ebx
mov esi, dword [esp + 0x68]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub dword [esp + 0x18], ebx
sub eax, ecx
mov ebx, dword [esp + 0x4c]
sub eax, edx
sub dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
sub esi, dword [esp + 0x60]
sub edi, dword [esp + 0x5c]
sub eax, dword [ebx + 8]
push 0xcc0020
push dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
push eax
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x54]
push eax
mov eax, edx
mov dword [esp + 0x78], esi
add eax, ecx
push eax
push dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx]
test edx, edx
jle 0x4a875a
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4a875a
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x5c], eax
add eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a875a
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
push 0xcc0020
push dword [ebx + 4]
mov dword [esp + 0x6c], ecx
push dword [ebx]
mov dword [esp + 0x74], eax
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x28]
push eax
push ecx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4a8a84
mov eax, dword [ebx]
add eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
lea eax, [ecx + edx]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x68], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
add dword [ebp - 0x1c7bf040], eax
add al, byte [eax]
invalid
mov eax, dword [esp + 0xc]
mov edx, dword [ebx]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub esi, dword [esp + 0x60]
sub eax, ecx
sub edi, dword [esp + 0x5c]
sub eax, edx
sub eax, dword [ebx + 8]
push 0xcc0020
push dword [ebx + 4]
mov dword [esp + 0x6c], edi
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], esi
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x80]
mov edi, dword [esp + 0x34]
push dword [esp + 0x80]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4a8a88
sub ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x68]
sub ecx, dword [ebx + 0xc]
dec edx
mov eax, ecx
mov dword [esp + 0x18], ecx
sub eax, dword [esp + 0x60]
add eax, edx
cdq
idiv ecx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4a86d0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
add edx, eax
add eax, ecx
mov dword [esp + 0x40], edx
mov edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
add edx, eax
mov eax, ecx
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x68]
jle 0x4a8866
mov ecx, dword [esp + 0x68]
sub eax, edx
add eax, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi]
mov edx, dword [ebx]
push 0xcc0020
push eax
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, edx
sub eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
add eax, dword [esi + 4]
push eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x3c]
push edi
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x2c], 1
je 0x4a86cc
mov ecx, dword [esp + 0x18]
jmp 0x4a882e
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
sub ecx, dword [ebx + 8]
mov edx, dword [esp + 0x64]
sub ecx, dword [ebx]
dec edx
cmp byte [ebp + 0x28], 0
mov dword [esp + 0x18], ecx
je 0x4a89cd
mov eax, dword [esi + 0xc]
sub eax, dword [ebx + 4]
sub eax, dword [esi + 4]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x38], eax
mov eax, ecx
sub eax, dword [esp + 0x5c]
add eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x38]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4a86d0
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
lea edx, [ecx + eax]
add ecx, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x48], ecx
cmp eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
cmovg eax, dword [esp + 0x68]
test ecx, ecx
jle 0x4a89b5
sub eax, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0xc]
push 0xcc0020
lea edx, [eax + ecx]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x38], eax
add ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x68]
mov eax, dword [ebx + 4]
cmovg ecx, dword [esp + 0x68]
add eax, dword [esi + 4]
sub ecx, edx
push eax
mov eax, dword [ebx]
add eax, dword [esi]
push eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x38]
push edi
push dword [esp + 0x5c]
push ecx
push eax
push edx
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
sub dword [esp + 0x28], 1
je 0x4a89b5
mov eax, dword [esp + 0x34]
jmp 0x4a895b
sub dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
jne 0x4a8925
jmp 0x4a86cc
mov eax, ecx
sub eax, dword [esp + 0x5c]
add eax, edx
cdq
idiv ecx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4a86d0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0xc]
add edx, eax
add eax, ecx
mov dword [esp + 0x40], edx
mov edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x64]
jle 0x4a8a28
mov eax, ecx
mov ecx, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x2c], ecx
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 4]
sub eax, ecx
push 0xcc0020
sub eax, edx
sub eax, dword [ebx + 0xc]
push eax
push dword [esp + 0x30]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [ebx]
add eax, dword [esi]
push eax
mov eax, dword [esp + 0x40]
push edi
push dword [esp + 0x80]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x3c], 1
je 0x4a86cc
mov ecx, dword [esp + 0x18]
jmp 0x4a89e8
mov edi, dword [esp + 0x10]
cmp dword [ebx + 8], 0
mov esi, dword [esp + 0x1c]
jle 0x4a8b22
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4a8b22
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [ebx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x60], eax
add eax, edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8b22
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x5c]
push 0xcc0020
push dword [ebx + 4]
mov dword [esp + 0x6c], edx
push dword [ebx + 8]
mov dword [esp + 0x74], ecx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, dword [ebx + 8]
push eax
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [ebx]
test edx, edx
jle 0x4a8bc2
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push esi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8bc6
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub esi, dword [esp + 0x60]
sub eax, ecx
sub edi, dword [esp + 0x5c]
sub eax, edx
sub eax, dword [ebx + 0xc]
push 0xcc0020
push eax
push dword [ebx]
lea eax, [ecx + edx]
mov dword [esp + 0x70], edi
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], esi
push dword [eax]
push dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [esp + 0x20]
cmp dword [ebx + 8], 0
mov edi, dword [esp + 0x1c]
jle 0x4a8c73
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, dword [ebx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push esi
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8c73
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub esi, dword [esp + 0x60]
sub eax, ecx
sub edi, dword [esp + 0x5c]
sub eax, edx
sub eax, dword [ebx + 0xc]
push 0xcc0020
push eax
push dword [ebx + 8]
lea eax, [ecx + edx]
mov dword [esp + 0x70], edi
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], esi
mov eax, dword [eax + 8]
sub eax, dword [ebx + 8]
push eax
push dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx]
test esi, esi
jle 0x4a8d0a
cmp dword [ebx + 0xc], 0
jle 0x4a8d0a
mov edx, dword [edi + 0xc]
mov eax, edx
mov ecx, dword [edi]
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
lea eax, [ecx + esi]
mov dword [esp + 0x68], edx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push esi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8d0e
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, dword [esi + 0xc]
sub eax, dword [ebx + 0xc]
sub edx, dword [esp + 0x5c]
push 0xcc0020
push dword [ebx + 0xc]
mov dword [esp + 0x6c], edx
push dword [ebx]
mov dword [esp + 0x74], ecx
push eax
push dword [esi]
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [esp + 0x20]
cmp dword [ebx + 0xc], 0
jle 0x4a8db2
mov eax, dword [ebx]
add eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push esi
lea eax, [esp + 0x74]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8db2
mov eax, dword [esp + 0xc]
mov edx, dword [ebx]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub esi, dword [esp + 0x60]
sub eax, ecx
sub edi, dword [esp + 0x5c]
sub eax, edx
sub eax, dword [ebx + 8]
push 0xcc0020
push dword [ebx + 0xc]
mov dword [esp + 0x6c], edi
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], esi
mov eax, dword [eax + 0xc]
sub eax, dword [ebx + 0xc]
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x28]
push esi
push edi
push dword [esp + 0x80]
mov edi, dword [esp + 0x34]
push dword [esp + 0x80]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4a8db6
mov edi, dword [esp + 0x10]
cmp dword [ebx + 8], 0
jle 0x4a8e56
cmp dword [ebx + 0xc], 0
jle 0x4a8e56
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, edx
sub eax, dword [ebx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], edx
push eax
mov dword [esp + 0x74], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a8e56
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, dword [esi + 0xc]
sub eax, dword [ebx + 0xc]
sub edx, dword [esp + 0x5c]
push 0xcc0020
push dword [ebx + 0xc]
mov dword [esp + 0x6c], edx
push dword [ebx + 8]
mov dword [esp + 0x74], ecx
push eax
mov eax, dword [esi + 8]
sub eax, dword [ebx + 8]
push eax
push dword [esp + 0x28]
push ecx
push edx
push dword [esp + 0x80]
push dword [esp + 0x80]
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [esp + 0x58]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret