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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x60], eax
test byte [0x58fedc], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], edx
jne 0x49ef15
or dword [0x58fedc], 1
push str.AlphaBlend
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58fed8], eax
cmp dword [0x58fed8], 0
jne 0x49ef28
mov dword [0x58fed8], 0x49caa0
cmp dword [esp + 0x2c], 0
je 0x4a00f1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xc]
push 4
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
cmp dword [0x58fed8], eax
je 0x49f807
cmp byte [ebp + 0x20], al
mov al, byte [ebp + 0x24]
jne 0x49ef9d
cmp al, 0xff
jae 0x49f807
cmp byte [ebp + 0x28], 0
mov word [esp + 0x1c], 0
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 1
jne 0x49f2f6
mov ecx, dword [esi]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
add edx, dword [esi + 4]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x50], edx
sub eax, ecx
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
sub eax, dword [esi + 8]
sub ecx, dword [esi + 4]
add eax, dword [esp + 0x4c]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x54], eax
add ecx, edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f2f6
cmp byte [ebp + 0x2c], 0
jne 0x49f081
cmp byte [ebp + 0x30], 0
jne 0x49f252
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
sub dword [esp + 0x54], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
sub dword [esp + 0x5c], ecx
mov ecx, dword [esi]
sub edx, eax
sub edx, dword [esi + 0xc]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [0x58fed8]
jmp 0x49f2f6
mov ecx, dword [edi + 8]
sub ecx, dword [esi]
mov edx, dword [esp + 0x54]
sub ecx, dword [edi]
sub ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esp + 0x4c]
lea eax, [eax + edx - 1]
cdq
idiv ecx
cmp byte [ebp + 0x30], 0
je 0x49f1b4
mov ebx, dword [edi + 0xc]
sub ebx, dword [esi + 0xc]
mov edx, dword [esp + 0x58]
sub ebx, dword [esi + 4]
mov dword [esp + 0x40], eax
sub ebx, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov eax, ebx
sub eax, dword [esp + 0x50]
mov dword [esp + 0x44], ebx
lea eax, [eax + edx - 1]
cdq
idiv ebx
mov ebx, dword [esp + 0x38]
test eax, eax
jle 0x49f2f6
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
add eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
add eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
add eax, dword [esp + 0x50]
mov dword [esp + 0x3c], edx
cmp eax, dword [esp + 0x58]
jle 0x49f117
sub edx, eax
mov eax, dword [esp + 0x58]
add edx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
test edx, edx
jle 0x49f19d
sub eax, dword [esp + 0x34]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
xor eax, eax
mov ebx, dword [esp + 0x4c]
lea edx, [eax + ebx]
add eax, ecx
mov dword [esp + 0x28], eax
add eax, ebx
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jle 0x49f152
mov ecx, dword [esp + 0x2c]
sub ecx, eax
add ecx, ebx
mov eax, ebx
mov ebx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x40]
push ebx
push ecx
mov ecx, dword [esi + 4]
add ecx, dword [edi + 4]
sub eax, edx
push ecx
mov ecx, dword [esi]
add ecx, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
push eax
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x70]
push eax
push edx
mov edx, dword [esp + 0x34]
push edx
call dword [0x58fed8]
dec dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jne 0x49f131
mov ebx, dword [esp + 0x38]
dec dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
jne 0x49f0e5
jmp 0x49f2f6
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x49f2f6
xor ecx, ecx
mov dword [esp + 0x24], eax
jmp 0x49f1d0
mov eax, dword [esp + 0x4c]
lea edx, [ecx + eax]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
add ecx, edx
add eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
cmp eax, ecx
jle 0x49f1fd
sub edx, eax
add edx, ecx
mov dword [esp + 0x18], edx
mov eax, ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
sub edx, ecx
sub edx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, dword [esi]
add ecx, dword [edi]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
call dword [0x58fed8]
dec dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
jne 0x49f1d0
jmp 0x49f2f6
mov ecx, dword [edi + 0xc]
sub ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x58]
sub ecx, dword [esi + 4]
sub ecx, dword [edi + 4]
mov edx, ecx
sub edx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x49f2f6
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x50]
cmp eax, edx
jle 0x49f2ab
sub ecx, eax
add ecx, edx
mov eax, edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
push ecx
mov ecx, dword [esi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
add edx, dword [edi + 4]
push edx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [0x58fed8]
dec dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
jne 0x49f281
mov edx, dword [esi]
test edx, edx
jle 0x49f388
cmp dword [esi + 4], 0
jle 0x49f42d
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 4]
add dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
add dword [esp + 0x58], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f388
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x70]
sub eax, ecx
push edx
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x58fed8]
cmp dword [esi + 4], 0
jle 0x49f42d
mov ecx, dword [esi]
mov edx, dword [ebx]
lea eax, [edx + ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 8]
sub eax, edx
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x50]
sub eax, dword [esi + 8]
mov dword [esp + 0x58], ecx
add eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f42d
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
sub dword [esp + 0x54], ecx
mov ecx, dword [edi]
mov eax, dword [esi]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [edi + 8]
sub edx, ecx
sub edx, eax
sub edx, dword [esi + 8]
add ecx, eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [0x58fed8]
cmp dword [esi + 8], 0
jle 0x49f4cb
cmp dword [esi + 4], 0
jle 0x49f4cb
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
sub eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 4]
add dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
add dword [esp + 0x58], edx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f4cb
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [edi + 4]
push eax
push edx
mov edx, dword [edi + 8]
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x6c]
push eax
push ecx
push edx
call dword [0x58fed8]
cmp dword [esi], 0
jle 0x49f573
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
lea eax, [edx + ecx]
mov dword [esp + 0x50], eax
mov eax, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xc]
sub eax, edx
sub eax, ecx
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
add dword [esp + 0x54], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f573
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, ecx
sub edx, eax
sub edx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call dword [0x58fed8]
cmp dword [esi + 8], 0
jle 0x49f622
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
sub ecx, eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
sub eax, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x54], ecx
add eax, edx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f622
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, ecx
sub edx, eax
sub edx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [esi + 8]
push edx
push ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call dword [0x58fed8]
mov edx, dword [esi]
test edx, edx
jle 0x49f6b8
cmp dword [esi + 0xc], 0
jle 0x49f762
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x4c], ecx
add edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0xc]
sub eax, ecx
mov dword [esp + 0x54], edx
add ecx, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x5c], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f6b8
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esi]
push eax
push edx
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
push ecx
push edx
push eax
call dword [0x58fed8]
cmp dword [esi + 0xc], 0
jle 0x49f762
mov edx, dword [ebx]
mov eax, dword [esi]
lea ecx, [edx + eax]
mov eax, dword [ebx + 8]
sub eax, edx
sub eax, dword [esi]
mov edx, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov dword [esp + 0x4c], ecx
add eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x58], edx
add dword [esp + 0x58], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49f762
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
push eax
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [0x58fed8]
cmp dword [esi + 8], 0
jle 0x4a00da
cmp dword [esi + 0xc], 0
jle 0x4a00da
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, dword [ebx + 0xc]
sub eax, ecx
sub ebx, edx
add ecx, eax
mov dword [esp + 0x4c], eax
add edx, ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x5c], edx
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a00da
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esi + 8]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [edi + 0xc]
push eax
push esi
sub ebx, eax
mov eax, dword [edi + 8]
push ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x70]
sub ecx, edx
push eax
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
push ecx
push edx
mov edx, dword [esp + 0x34]
push edx
call dword [0x58fed8]
jmp 0x4a00da
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, eax
sub edx, dword [ebx]
cmp edx, ecx
jne 0x49f89d
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0xc]
sub edx, dword [edi + 4]
sub ecx, dword [ebx + 4]
cmp ecx, edx
jne 0x49f89d
cmp dword [esi], 0
jne 0x49f89d
cmp dword [esi + 8], 0
jne 0x49f89d
cmp dword [esi + 4], 0
jne 0x49f89d
cmp dword [esi + 0xc], 0
jne 0x49f89d
mov edx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a00da
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x60]
sub ecx, dword [ebx + 4]
mov edx, dword [edi]
sub edx, dword [ebx]
push 0xcc0020
add ecx, eax
push ecx
mov ecx, dword [esp + 0x64]
add edx, ecx
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x78]
sub edx, eax
push edx
mov edx, dword [esp + 0x78]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4a00da
cmp byte [ebp + 0x28], 0
jne 0x49fbd2
mov edx, dword [ebx]
add edx, dword [esi]
mov ecx, dword [ebx + 4]
sub eax, dword [ebx]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 4]
sub eax, dword [esi]
add ecx, edx
sub eax, dword [esi + 8]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
add eax, dword [esp + 0x4c]
sub ecx, edx
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fbd2
cmp byte [ebp + 0x2c], 0
jne 0x49f96f
cmp byte [ebp + 0x30], 0
jne 0x49fb27
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
sub dword [esp + 0x54], ecx
mov ecx, dword [esi]
sub edx, eax
sub edx, dword [esi + 0xc]
push 0xcc0020
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x49fbd2
mov ecx, dword [edi + 8]
sub ecx, dword [esi]
sub ecx, dword [edi]
sub ecx, dword [esi + 8]
cmp byte [ebp + 0x30], 0
je 0x49fa80
mov eax, dword [edi + 0xc]
sub eax, dword [esi + 0xc]
mov edx, dword [esp + 0x54]
sub eax, dword [esi + 4]
mov dword [esp + 0x28], ecx
sub eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, ecx
sub eax, dword [esp + 0x4c]
lea eax, [eax + edx - 1]
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, dword [esp + 0x50]
lea eax, [eax + edx - 1]
cdq
idiv ecx
test eax, eax
jle 0x49fbd2
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
lea edx, [eax + ecx]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], eax
add eax, ecx
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jle 0x49f9f8
mov eax, ecx
cmp dword [esp + 0x24], 0
jle 0x49fa69
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x4c]
lea ecx, [eax + edx]
add eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
add eax, edx
mov edx, dword [esp + 0x54]
cmp eax, edx
jle 0x49fa2c
mov eax, edx
mov edx, dword [esi + 4]
add edx, dword [edi + 4]
push 0xcc0020
push edx
mov edx, dword [esi]
add edx, dword [edi]
sub eax, ecx
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
dec dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jne 0x49fa11
dec dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
jne 0x49f9d5
jmp 0x49fbd2
mov eax, dword [esp + 0x54]
mov edx, ecx
sub edx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x49fbd2
xor ecx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
lea edx, [ecx + eax]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
add ecx, edx
add eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], edx
cmp eax, dword [esp + 0x54]
jle 0x49fad2
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov ecx, dword [esi + 4]
sub edx, ecx
sub edx, dword [esi + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, dword [esi]
add ecx, dword [edi]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
dec dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
jne 0x49faa3
jmp 0x49fbd2
mov ecx, dword [edi + 0xc]
sub ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x58]
sub ecx, dword [esi + 4]
sub ecx, dword [edi + 4]
mov edx, ecx
sub edx, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x49fbd2
xor edx, edx
mov dword [esp + 0x18], eax
jmp 0x49fb60
mov eax, dword [esp + 0x50]
lea ecx, [edx + eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
add edx, ecx
add eax, edx
mov dword [esp + 0x40], edx
cmp eax, dword [esp + 0x58]
jle 0x49fb85
sub ecx, eax
mov eax, dword [esp + 0x58]
add ecx, eax
push 0xcc0020
push ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, ecx
mov ecx, dword [esi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
add edx, dword [edi + 4]
push edx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x48]
sub eax, ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
dec dword [esp + 0x18]
mov edx, dword [esp + 0x40]
jne 0x49fb60
mov edx, dword [esi]
test edx, edx
jle 0x49fc64
cmp dword [esi + 4], 0
jle 0x49fd09
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 4]
add dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
add dword [esp + 0x58], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fc64
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push 0xcc0020
push edx
mov edx, dword [esi]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x70]
sub eax, ecx
push edx
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 4], 0
jle 0x49fd09
mov ecx, dword [esi]
mov edx, dword [ebx]
lea eax, [edx + ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 8]
sub eax, edx
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x50]
sub eax, dword [esi + 8]
mov dword [esp + 0x58], ecx
add eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fd09
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov ecx, dword [esp + 0x4c]
sub dword [esp + 0x54], ecx
mov edx, dword [esi + 4]
mov ecx, dword [edi]
mov eax, dword [esi]
push 0xcc0020
push edx
mov edx, dword [edi + 8]
sub edx, ecx
sub edx, eax
sub edx, dword [esi + 8]
add ecx, eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x49fda7
cmp dword [esi + 4], 0
jle 0x49fda7
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
sub eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 4]
add dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
add dword [esp + 0x58], edx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fda7
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
push 0xcc0020
push edx
mov edx, dword [edi + 4]
push eax
push edx
mov edx, dword [edi + 8]
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x6c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi], 0
jle 0x49fe4f
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
lea eax, [edx + ecx]
mov dword [esp + 0x50], eax
mov eax, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xc]
sub eax, edx
sub eax, ecx
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
add dword [esp + 0x54], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fe4f
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xc]
sub edx, ecx
push 0xcc0020
sub edx, eax
sub edx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x49fefe
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
sub ecx, eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
sub eax, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x54], ecx
add eax, edx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49fefe
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xc]
sub edx, ecx
sub edx, eax
sub edx, dword [esi + 0xc]
push 0xcc0020
push edx
mov edx, dword [esi + 8]
push edx
add ecx, eax
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esi]
test edx, edx
jle 0x49ff94
cmp dword [esi + 0xc], 0
jle 0x4a003e
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x4c], ecx
add edx, dword [esp + 0x4c]
mov ecx, dword [esi + 0xc]
sub eax, ecx
mov dword [esp + 0x54], edx
add ecx, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x5c], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49ff94
mov edx, dword [esp + 0x50]
sub dword [esp + 0x58], edx
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
push 0xcc0020
push eax
push edx
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 0xc], 0
jle 0x4a003e
mov edx, dword [ebx]
mov eax, dword [esi]
lea ecx, [edx + eax]
mov eax, dword [ebx + 8]
sub eax, edx
sub eax, dword [esi]
mov edx, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov dword [esp + 0x4c], ecx
add eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x58], edx
add dword [esp + 0x58], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a003e
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x54], edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov ecx, dword [esi]
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
push 0xcc0020
push eax
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x4a00da
cmp dword [esi + 0xc], 0
jle 0x4a00da
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, dword [ebx + 0xc]
sub eax, ecx
sub ebx, edx
add ecx, eax
mov dword [esp + 0x4c], eax
add edx, ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x5c], edx
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a00da
mov eax, dword [esp + 0x50]
sub dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push 0xcc0020
push eax
push esi
sub ebx, eax
mov eax, dword [edi + 8]
push ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x70]
sub ecx, edx
push eax
push ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
push ecx
push edx
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret