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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x6a8c7c]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8c97
cmp dword [esp + 0x48], 0
je 0x4d8c97
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x48]
mov dword [esp + 0x20], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
push 4
push dword [eax + 0xc]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
movups xmm0, xmmword [esi]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x54], xmm0
call fcn.004abd00
mov ecx, eax
call fcn.004abd80
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 4]
add eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x9c], eax
mov eax, dword [esi]
add eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
add eax, dword [esi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
sub eax, dword [esi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d866e
cmp byte [ebp + 0x24], 0
jne 0x4d8490
cmp byte [ebp + 0x28], 0
jne 0x4d837f
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
jmp 0x4d866e
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
sub ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x9c]
mov eax, ecx
sub eax, dword [esp + 0x94]
dec edx
add eax, edx
mov dword [esp + 0x70], ecx
cdq
idiv ecx
mov dword [esp + 0x48], eax
test eax, eax
jle 0x4d866e
movzx eax, byte [ebp + 0x20]
mov dword [esp + 0x74], eax
xor eax, eax
nop dword [eax + eax]
mov edx, dword [esp + 0x94]
lea edi, [eax + edx]
add eax, ecx
mov dword [esp + 0x6c], eax
add eax, edx
mov dword [esp + 0x40], eax
mov edx, ecx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x40], eax
jle 0x4d83f7
sub edx, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push dword [esp + 0x74]
mov ecx, dword [edi + 4]
add ecx, dword [esi + 4]
push dword [ebp + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x98]
sub esp, 0x10
add dword [esp + 0xb0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb4], eax
mov eax, dword [esi]
add eax, dword [edi]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
sub eax, dword [esi + 8]
mov dword [esp + 0x40], eax
lea eax, [ecx + edx]
mov dword [esp + 0x44], eax
mov eax, esp
push dword [esp + 0x34]
mov dword [esp + 0x40], ecx
movups xmm0, xmmword [esp + 0x3c]
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0xbc]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
sub dword [esp + 0x48], 1
je 0x4d866e
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
jmp 0x4d83c0
mov edi, dword [edi + 8]
sub edi, dword [esi]
mov eax, dword [esp + 0x3c]
sub edi, dword [esi + 8]
sub edi, dword [eax]
cmp byte [ebp + 0x28], 0
je 0x4d8cad
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov eax, edi
sub ecx, dword [esi + 4]
sub eax, dword [esp + 0x90]
sub ecx, dword [esi + 0xc]
mov esi, dword [esp + 0x98]
dec esi
mov dword [esp + 0x78], ecx
add eax, esi
sub ecx, dword [esp + 0x94]
cdq
idiv edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x9c]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x78]
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x4d8666
mov edx, dword [esp + 0x94]
xor ecx, ecx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x68], ecx
nop dword [eax + eax]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
add ecx, esi
mov dword [esp + 0x64], ecx
add ecx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x70], esi
cmp ecx, eax
jle 0x4d853a
mov ecx, esi
sub ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x70], ecx
mov ecx, eax
cmp dword [esp + 0x6c], 0
jle 0x4d8653
mov eax, dword [esp + 0x68]
add eax, edx
sub ecx, eax
movzx eax, byte [ebp + 0x20]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x90]
lea esi, [ecx + eax]
add ecx, edi
mov dword [esp + 0x80], ecx
add ecx, eax
mov dword [esp + 0x84], esi
mov eax, edi
mov esi, dword [esp + 0x98]
cmp ecx, esi
jle 0x4d8592
sub eax, ecx
mov ecx, esi
add eax, esi
add edx, dword [esp + 0x68]
mov esi, dword [esp + 0x84]
push dword [esp + 0x7c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x4c]
push dword [ebp + 0x10]
add ecx, edx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xa8], esi
mov esi, dword [edx]
mov ecx, dword [ecx]
add esi, ecx
mov ecx, dword [esp + 0x54]
add eax, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], esi
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 4]
add ecx, edx
add eax, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x38]
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
mov edx, dword [esp + 0xc0]
add esp, 0x2c
sub dword [esp + 0x74], 1
je 0x4d864c
mov ecx, dword [esp + 0x80]
jmp 0x4d8563
mov eax, dword [esp + 0x9c]
sub dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], ecx
jne 0x4d8510
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
jle 0x4d8729
mov edx, dword [esi + 4]
test edx, edx
jle 0x4d8729
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x90], eax
add eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [edi]
mov dword [esp + 0x20], eax
add eax, dword [esi]
mov dword [esp + 0x28], eax
lea eax, [ecx + edx]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
mov dword [esp + 0x2c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8729
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov edx, dword [esi + 4]
test edx, edx
jle 0x4d87e5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [esi]
add eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
sub eax, dword [esi + 8]
mov dword [esp + 0x28], eax
lea eax, [ecx + edx]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
mov dword [esp + 0x2c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d87e5
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
cmp dword [esi + 8], 0
jle 0x4d88a4
mov edx, dword [esi + 4]
test edx, edx
jle 0x4d88a4
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
mov eax, ecx
sub eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x54]
mov dword [esp + 0x9c], eax
mov eax, ecx
sub eax, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d88a4
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov edx, dword [esi]
test edx, edx
jle 0x4d8962
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x90], ecx
mov ecx, dword [edi]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 4]
add eax, dword [esi + 4]
mov dword [esp + 0x24], eax
lea eax, [ecx + edx]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8962
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov edx, dword [esi + 8]
test edx, edx
jle 0x4d8a28
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, ecx
sub eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x9c], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
add eax, dword [esi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8a28
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov eax, dword [esi]
test eax, eax
jle 0x4d8ae4
cmp dword [esi + 0xc], 0
jle 0x4d8ae4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, edx
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x98], eax
mov eax, edx
sub eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi]
add eax, ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
mov dword [esp + 0x28], ecx
push eax
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8ae4
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov edx, dword [esi + 0xc]
test edx, edx
jle 0x4d8ba3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x90], eax
mov eax, ecx
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x98], eax
mov eax, dword [esi]
add eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
sub eax, dword [esi + 8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8ba3
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov eax, dword [esi + 8]
mov dword [esp + 0x64], eax
test eax, eax
jle 0x4d8c68
mov esi, dword [esi + 0xc]
test esi, esi
jle 0x4d8c68
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov eax, edx
sub eax, dword [esp + 0x58]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x90], eax
mov eax, ecx
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov edx, dword [edi + 8]
mov eax, edx
sub eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov dword [esp + 0x9c], ecx
mov ecx, dword [edi + 0xc]
mov eax, ecx
sub eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
mov dword [esp + 0x34], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d8c68
movzx eax, byte [ebp + 0x20]
movups xmm0, xmmword [esp + 0x20]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
mov eax, dword [esp + 0x18]
push dword [esp + 0x88]
push dword [eax + 0xc]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [esp + 0x8c]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [esp + 0x98]
mov eax, edi
sub eax, dword [esp + 0x90]
dec eax
add eax, ecx
cdq
idiv edi
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x4d866a
movzx eax, byte [ebp + 0x20]
mov dword [esp + 0x80], eax
xor eax, eax
nop dword [eax]
mov edx, dword [esp + 0x90]
lea esi, [edx + eax]
add eax, edi
mov dword [esp + 0x7c], eax
add eax, edx
mov dword [esp + 0x64], esi
mov edx, edi
mov esi, dword [esp + 0x40]
cmp eax, ecx
jle 0x4d8d06
sub edx, eax
mov eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x94]
add dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x80]
mov dword [esp + 0x94], ecx
mov ecx, dword [esi]
mov eax, dword [eax]
add ecx, eax
mov eax, dword [esp + 0x40]
push dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
sub esp, 0x10
mov eax, dword [eax + 4]
add eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
lea eax, [ecx + edx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x38]
push dword [esp + 0x34]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004d7b50
add esp, 0x2c
sub dword [esp + 0x4c], 1
je 0x4d866a
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x7c]
jmp 0x4d8ce0