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

Disassembly:
sub esp, 0x4c
test byte [0x63598c], 1
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, eax
jne 0x45db28
or dword [0x63598c], 1
push str.AlphaBlend
push 0x609658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x635988], eax
cmp dword [0x635988], 0
jne 0x45db3b
mov dword [0x635988], 0x45cf00
cmp dword [esp + 0x60], 0
je 0x45ed67
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov eax, dword [esp + 0x60]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 3
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
cmp dword [0x635988], eax
je 0x45e43d
cmp byte [esp + 0x6c], al
jne 0x45dba7
cmp byte [esp + 0x70], 0xff
jae 0x45e43d
cmp byte [esp + 0x74], 0
mov cl, byte [esp + 0x70]
mov byte [esp + 0x60], 0
mov byte [esp + 0x61], 0
mov byte [esp + 0x62], cl
mov byte [esp + 0x63], 1
jne 0x45df25
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [esi]
add edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov ecx, dword [ecx + 0xc]
sub ecx, dword [esi + 4]
sub eax, dword [esi]
sub ecx, edx
sub eax, dword [esi + 8]
sub ecx, dword [esi + 0xc]
add eax, dword [esp + 0x38]
add ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45df25
cmp byte [esp + 0x78], 0
jne 0x45dc96
cmp byte [esp + 0x7c], 0
jne 0x45de6c
mov edx, dword [esp + 0x38]
sub dword [esp + 0x40], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, 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 [esi + 4]
add edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [0x635988]
jmp 0x45df25
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov eax, dword [esp + 0x40]
sub ecx, dword [esi]
sub ecx, dword [esi + 8]
mov edx, ecx
sub edx, dword [esp + 0x38]
lea eax, [edx + eax - 1]
cdq
idiv ecx
cmp byte [esp + 0x7c], 0
je 0x45ddcf
mov ebx, dword [edi + 0xc]
sub ebx, dword [edi + 4]
mov dword [esp + 0x24], eax
sub ebx, dword [esi + 4]
mov eax, dword [esp + 0x44]
sub ebx, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
mov edx, ebx
sub edx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
lea eax, [edx + eax - 1]
cdq
idiv ebx
mov ebx, dword [esp + 0x5c]
test eax, eax
jle 0x45df25
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x45dd00
mov eax, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
add eax, edx
cmp eax, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
jle 0x45dd34
sub edx, eax
mov eax, dword [esp + 0x44]
add edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
test edx, edx
jle 0x45ddb7
sub eax, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
xor eax, eax
lea ebx, [ebx]
mov ebx, dword [esp + 0x38]
lea edx, [eax + ebx]
add eax, ecx
mov dword [esp + 0x2c], eax
add eax, ebx
mov ebx, dword [esp + 0x40]
cmp eax, ebx
jle 0x45dd71
mov ecx, dword [esp + 0x10]
sub ecx, eax
add ecx, ebx
mov eax, ebx
mov ebx, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, dword [edi + 4]
add ecx, dword [esi + 4]
mov ebx, dword [esp + 0x68]
push ecx
mov ecx, dword [edi]
add ecx, dword [esi]
sub eax, edx
push ecx
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
add eax, ecx
push eax
push edx
push ebx
call dword [0x635988]
sub dword [esp + 0x18], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
jne 0x45dd50
sub dword [esp + 0x20], 1
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
jne 0x45dd00
jmp 0x45df25
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x45df25
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
lea edx, [ecx + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
add ecx, edx
add eax, ecx
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
jle 0x45de10
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
sub dword [esp + 0x44], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, ecx
mov ecx, dword [edi + 4]
sub edx, ecx
sub edx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esi + 4]
add edx, ecx
mov ecx, dword [edi]
add ecx, dword [esi]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
sub eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push ebx
call dword [0x635988]
sub dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
jne 0x45dde1
jmp 0x45df25
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x44]
sub ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, ecx
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x45df25
xor ecx, ecx
mov dword [esp + 0x1c], eax
jmp 0x45dea0
mov eax, dword [esp + 0x3c]
lea edx, [ecx + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
add ecx, edx
add eax, ecx
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
jle 0x45decf
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x40], ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [edi + 8]
sub edx, ecx
mov ecx, dword [esi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 4]
add edx, dword [esi + 4]
push edx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x3c]
push edx
push ebp
sub eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push ebx
call dword [0x635988]
sub dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
jne 0x45dea0
mov edx, dword [esi]
test edx, edx
jle 0x45dfb3
cmp dword [esi + 4], 0
jle 0x45e05c
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 4]
add dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
add dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45dfb3
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
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 + 0x58]
push ebp
push edx
sub eax, ecx
push eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push ebx
call dword [0x635988]
cmp dword [esi + 4], 0
jle 0x45e05c
mov ecx, dword [esi]
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
lea eax, [edx + ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
sub eax, edx
mov edx, dword [esp + 0x68]
sub eax, ecx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x3c]
sub eax, dword [esi + 8]
mov dword [esp + 0x44], ecx
add eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e05c
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
sub dword [esp + 0x40], ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [edi + 8]
sub edx, eax
sub edx, ecx
sub edx, dword [esi + 8]
add eax, ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [0x635988]
cmp dword [esi + 8], 0
jle 0x45e0f6
cmp dword [esi + 4], 0
jle 0x45e0f6
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
sub eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
add dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add dword [esp + 0x44], edx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e0f6
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
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 + 0x54]
push edx
mov edx, dword [esp + 0x4c]
push ebp
push eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push ecx
push edx
push ebx
call dword [0x635988]
cmp dword [esi], 0
jle 0x45e19e
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
lea eax, [edx + ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
sub eax, edx
sub eax, ecx
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x3c]
add dword [esp + 0x40], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e19e
mov edx, dword [esp + 0x38]
sub dword [esp + 0x40], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 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 + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
push ebp
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
call dword [0x635988]
cmp dword [esi + 8], 0
jle 0x45e24d
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 4]
mov edx, dword [esi + 4]
sub eax, ecx
sub eax, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x38]
add dword [esp + 0x40], ecx
add eax, edx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e24d
mov edx, dword [esp + 0x38]
sub dword [esp + 0x40], edx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov edx, dword [esi + 4]
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi + 0xc]
sub ecx, edx
sub ecx, eax
sub ecx, dword [esi + 0xc]
add edx, eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esi + 8]
push ecx
push edx
mov edx, dword [edi + 8]
sub edx, ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [0x635988]
mov edx, dword [esi]
test edx, edx
jle 0x45e2df
cmp dword [esi + 0xc], 0
jle 0x45e38c
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
add edx, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
sub eax, ecx
mov dword [esp + 0x40], edx
add ecx, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e2df
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
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 + 0x54]
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
call dword [0x635988]
cmp dword [esi + 0xc], 0
jle 0x45e38c
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [esi]
mov ecx, dword [ecx + 0xc]
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
sub ecx, eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, dword [esi]
mov edx, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov dword [esp + 0x44], edx
add eax, dword [esp + 0x38]
add dword [esp + 0x44], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e38c
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x40], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [edi]
mov eax, dword [esi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
sub edx, ecx
mov ecx, dword [esi]
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 + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [0x635988]
cmp dword [esi + 8], 0
jle 0x45ed54
cmp dword [esi + 0xc], 0
jle 0x45ed54
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0xc]
sub ecx, edx
mov edx, dword [esi + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
add dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
add dword [esp + 0x44], ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ed54
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x60]
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
push edx
mov edx, dword [edi + 0xc]
push eax
push esi
sub edx, eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [esp + 0x54]
sub eax, esi
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
call dword [0x635988]
jmp 0x45ed54
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
mov edx, eax
sub edx, ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov dword [esp + 0x60], eax
cmp edx, ecx
jne 0x45e4df
mov eax, dword [esp + 0x64]
mov edx, dword [edi + 0xc]
mov ecx, dword [eax + 0xc]
sub edx, dword [edi + 4]
sub ecx, dword [eax + 4]
cmp ecx, edx
jne 0x45e4db
cmp dword [esi], 0
jne 0x45e4db
cmp dword [esi + 8], 0
jne 0x45e4db
cmp dword [esi + 4], 0
jne 0x45e4db
cmp dword [esi + 0xc], 0
jne 0x45e4db
mov edx, dword [esp + 0x68]
mov esi, eax
push esi
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ed54
mov ecx, dword [edi + 4]
sub ecx, dword [esi + 4]
mov eax, dword [esp + 0x4c]
mov edx, dword [edi]
sub edx, dword [esi]
push 0xcc0020
add ecx, eax
push ecx
mov ecx, dword [esp + 0x50]
add edx, ecx
push edx
mov edx, dword [esp + 0x60]
push ebp
sub edx, eax
push edx
mov edx, dword [esp + 0x64]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x45ed54
mov eax, dword [esp + 0x60]
cmp byte [esp + 0x74], 0
jne 0x45e845
mov ecx, dword [esi]
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
add edx, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 4]
add edx, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x64]
sub eax, dword [edx]
sub eax, dword [esi]
sub eax, dword [esi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
sub eax, dword [esi + 4]
mov edx, dword [esp + 0x38]
add dword [esp + 0x40], edx
sub eax, ecx
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x68]
add eax, dword [esp + 0x3c]
lea edx, [esp + 0x48]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e845
cmp byte [esp + 0x78], 0
jne 0x45e5c0
cmp byte [esp + 0x7c], 0
jne 0x45e78b
mov ecx, dword [esp + 0x3c]
sub dword [esp + 0x44], ecx
mov eax, dword [esp + 0x38]
sub dword [esp + 0x40], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
sub edx, 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 [esi + 4]
add edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x45e845
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
sub ecx, dword [esi]
sub ecx, dword [esi + 8]
mov edx, ecx
sub edx, dword [esp + 0x38]
cmp byte [esp + 0x7c], 0
je 0x45e6df
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
sub eax, dword [esi + 4]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
lea eax, [edx + eax - 1]
cdq
idiv ecx
mov ecx, dword [esp + 0x20]
mov edx, ecx
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x45e845
mov dword [esp + 0x60], 0
mov dword [esp + 0x14], eax
jmp 0x45e630
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
lea edx, [eax + ecx]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x24], eax
add eax, ecx
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jle 0x45e655
mov eax, ecx
cmp dword [esp + 0x1c], 0
jle 0x45e6c7
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x38]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
add eax, edx
mov edx, dword [esp + 0x40]
cmp eax, edx
jle 0x45e68f
mov eax, edx
mov edx, dword [edi + 4]
add edx, dword [esi + 4]
push 0xcc0020
push edx
mov edx, dword [edi]
add edx, dword [esi]
sub eax, ecx
push edx
mov edx, dword [esp + 0x3c]
push ebp
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x78]
add eax, edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
sub dword [esp + 0x18], 1
mov eax, dword [esp + 0x28]
jne 0x45e66e
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
jne 0x45e630
jmp 0x45e845
mov eax, dword [esp + 0x40]
lea eax, [edx + eax - 1]
cdq
idiv ecx
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x45e845
xor ecx, ecx
mov dword [esp + 0x20], eax
lea esp, [esp]
mov eax, dword [esp + 0x38]
lea edx, [ecx + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
add ecx, edx
add eax, ecx
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], edx
jle 0x45e72f
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x3c]
sub dword [esp + 0x44], ecx
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0xc]
sub edx, ecx
mov ecx, dword [edi + 4]
sub edx, ecx
sub edx, dword [esi + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esi + 4]
add edx, ecx
mov ecx, dword [edi]
add ecx, dword [esi]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
sub eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x20], 1
mov ecx, dword [esp + 0x28]
jne 0x45e700
jmp 0x45e845
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x44]
sub ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, ecx
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea eax, [edx + eax - 1]
cdq
idiv ecx
test eax, eax
jle 0x45e845
xor ecx, ecx
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x3c]
lea edx, [ecx + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
add ecx, edx
add eax, ecx
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], edx
jle 0x45e7ef
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x40], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [edi]
push 0xcc0020
push edx
mov edx, dword [edi + 8]
sub edx, ecx
mov ecx, dword [esi]
sub edx, ecx
sub edx, dword [esi + 8]
push edx
mov edx, dword [edi + 4]
add edx, dword [esi + 4]
push edx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x3c]
push edx
push ebp
sub eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x20], 1
mov ecx, dword [esp + 0x28]
jne 0x45e7c0
mov edx, dword [esi]
test edx, edx
jle 0x45e8d3
cmp dword [esi + 4], 0
jle 0x45e97c
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 4]
add dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
add dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e8d3
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
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 + 0x58]
push ebp
push edx
sub eax, ecx
push eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 4], 0
jle 0x45e97c
mov ecx, dword [esi]
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
lea eax, [edx + ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
sub eax, edx
mov edx, dword [esp + 0x68]
sub eax, ecx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x3c]
sub eax, dword [esi + 8]
mov dword [esp + 0x44], ecx
add eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45e97c
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
sub dword [esp + 0x40], ecx
mov ecx, dword [esi]
push 0xcc0020
push edx
mov edx, dword [edi + 8]
sub edx, eax
sub edx, ecx
sub edx, dword [esi + 8]
add eax, ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x45ea16
cmp dword [esi + 4], 0
jle 0x45ea16
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
sub eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
add dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add dword [esp + 0x44], edx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ea16
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
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 + 0x54]
push edx
mov edx, dword [esp + 0x4c]
push ebp
push eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi], 0
jle 0x45eabe
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
lea eax, [edx + ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
sub eax, edx
sub eax, ecx
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x3c]
add dword [esp + 0x40], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45eabe
mov edx, dword [esp + 0x38]
sub dword [esp + 0x40], edx
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 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 + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
push ebp
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x45eb6d
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 4]
mov edx, dword [esi + 4]
sub eax, ecx
sub eax, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x38]
add dword [esp + 0x40], ecx
add eax, edx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45eb6d
mov edx, dword [esp + 0x38]
sub dword [esp + 0x40], edx
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 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 + 8]
push edx
mov edx, dword [esi + 8]
push edx
push ecx
mov ecx, dword [esp + 0x54]
sub eax, edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ebp
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esi]
test edx, edx
jle 0x45ebff
cmp dword [esi + 0xc], 0
jle 0x45ecac
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
add edx, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
sub eax, ecx
mov dword [esp + 0x40], edx
add ecx, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ebff
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
push 0xcc0020
push eax
push edx
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 0xc], 0
jle 0x45ecac
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [esi]
mov ecx, dword [ecx + 0xc]
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
sub ecx, eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, dword [esi]
mov edx, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov dword [esp + 0x44], edx
add eax, dword [esp + 0x38]
add dword [esp + 0x44], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ecac
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub dword [esp + 0x44], edx
sub dword [esp + 0x40], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 8]
mov eax, dword [esi + 0xc]
sub edx, ecx
mov ecx, dword [esi]
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 + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [esi + 8], 0
jle 0x45ed54
cmp dword [esi + 0xc], 0
jle 0x45ed54
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0xc]
sub ecx, edx
mov edx, dword [esi + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xc]
add dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
add dword [esp + 0x44], ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45ed54
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x44], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
push 0xcc0020
push eax
push esi
sub edx, eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [esp + 0x54]
sub eax, esi
push eax
mov eax, dword [esp + 0x50]
push ebp
push edx
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x34]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret