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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x5b5ef4]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 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 0x46745f
cmp dword [esp + 0x30], 0
je 0x46745f
push dword [edi + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x30]
mov dword [esp + 0x24], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push dword [edi + 0xc]
mov dword [esp + 0x84], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
movups xmm0, xmmword [ebp + 0x1c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x40]
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 + 0x44], xmm0
call fcn.0041c660
mov ecx, eax
call fcn.0041c7a0
cmp byte [ebp + 0x2c], 0
je 0x466a8c
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp + 0x1c], xmm0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 4]
add eax, dword [esp + 0x44]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x1c]
add eax, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x466e61
cmp byte [ebp + 0x34], 0
jne 0x466ca0
cmp byte [ebp + 0x38], 0
jne 0x466b60
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
jmp 0x466e61
mov ecx, dword [esi + 0xc]
sub ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x20]
sub ecx, dword [esi + 4]
cmp byte [ebp + 0x40], 0
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x5c], ecx
lea eax, [ecx + edx]
mov dword [esp + 0x3c], eax
je 0x466b93
mov eax, ecx
sub eax, dword [esp + 0x94]
add eax, dword [esp + 0x9c]
dec edx
jmp 0x466ba1
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
add eax, edx
cdq
idiv dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
add edx, eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], edx
jle 0x466e61
movzx eax, byte [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x94]
add eax, edx
mov edx, ecx
mov dword [esp + 0x34], eax
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0x24], eax
jle 0x466c10
sub edx, dword [esp + 0x24]
add edx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esi]
add eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
add ecx, dword [ebp + 0x20]
push dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x24]
push dword [ebp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [edx + ecx]
mov dl, byte [edi + 0x18]
sub esp, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa4], eax
mov eax, esp
push dword [esp + 0x38]
mov dword [esp + 0x30], ecx
movups xmm0, xmmword [esp + 0x2c]
mov ecx, dword [edi + 0xc]
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0xac]
movups xmmword [eax], xmm0
call fcn.004662a0
mov edx, dword [esp + 0x5c]
add esp, 0x2c
add edx, dword [esp + 0x3c]
sub dword [esp + 0x2c], 1
mov dword [esp + 0x30], edx
je 0x466e61
mov ecx, dword [esp + 0x5c]
jmp 0x466be4
mov edi, dword [esi + 8]
sub edi, dword [esi]
sub edi, dword [ebp + 0x24]
sub edi, dword [ebp + 0x1c]
mov eax, edi
sub eax, dword [esp + 0x90]
cmp byte [ebp + 0x38], 0
je 0x467475
mov ecx, dword [esi + 0xc]
sub ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x20]
sub ecx, dword [esi + 4]
mov esi, dword [esp + 0x98]
dec esi
mov dword [esp + 0x3c], ecx
add eax, esi
sub ecx, dword [esp + 0x94]
cdq
idiv edi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x9c]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x3c]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x466e59
mov edx, dword [esp + 0x94]
xor ecx, ecx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x6c], ecx
add ecx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x5c], esi
cmp ecx, eax
jle 0x466d3f
mov ecx, esi
sub ecx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x5c], ecx
mov ecx, eax
cmp dword [esp + 0x70], 0
jle 0x466e46
mov eax, dword [esp + 0x2c]
add eax, edx
sub ecx, eax
movzx eax, byte [ebp + 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov dword [esp + 0x60], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x90]
lea esi, [ecx + eax]
add ecx, edi
mov dword [esp + 0x68], ecx
add ecx, eax
mov dword [esp + 0x74], esi
mov eax, edi
mov esi, dword [esp + 0x98]
cmp ecx, esi
jle 0x466d99
sub eax, ecx
mov ecx, esi
add eax, esi
add edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x74]
push dword [esp + 0x64]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x34]
push dword [ebp + 0x10]
add ecx, edx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov dword [esp + 0xb4], ecx
mov ecx, edx
mov dword [esp + 0xa8], esi
mov esi, dword [edx]
add esi, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
add eax, esi
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
add ecx, edx
mov eax, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, esp
push dword [esp + 0x38]
mov dword [esp + 0x2c], esi
movups xmm0, xmmword [esp + 0x2c]
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0xbc]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x64]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004662a0
mov edx, dword [esp + 0xc0]
add esp, 0x2c
sub dword [esp + 0x60], 1
je 0x466e3f
mov ecx, dword [esp + 0x68]
jmp 0x466d70
mov eax, dword [esp + 0x9c]
sub dword [esp + 0x34], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
jne 0x466d15
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
mov edx, dword [ebp + 0x1c]
test edx, edx
jle 0x466f1b
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jle 0x466fd4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x90], eax
add eax, dword [esp + 0x40]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [esi]
mov dword [esp + 0x10], eax
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
add eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov edi, dword [esp + 0x38]
test eax, eax
je 0x466f1b
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x466fd4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov eax, ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [esi]
add eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [ecx + edx]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
mov dword [esp + 0x1c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x466fd4
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
mov edx, dword [ebp + 0x24]
test edx, edx
jle 0x46708f
cmp dword [ebp + 0x20], 0
jle 0x46708f
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 8]
mov eax, ecx
sub eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x98], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
add eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46708f
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
mov edx, dword [ebp + 0x1c]
test edx, edx
jle 0x46714a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x44]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x90], ecx
mov ecx, dword [esi]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [ecx + edx]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46714a
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
mov edx, dword [ebp + 0x24]
test edx, edx
jle 0x46720c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov eax, ecx
sub eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x98], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x44]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46720c
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
cmp dword [ebp + 0x1c], 0
jle 0x4672c5
cmp dword [ebp + 0x28], 0
jle 0x467381
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, edx
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x9c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x98], eax
mov eax, edx
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x90], ecx
mov ecx, dword [esi]
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4672c5
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
mov edx, dword [ebp + 0x28]
test edx, edx
jle 0x467381
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x90], eax
mov eax, ecx
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esi]
add eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x467381
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
cmp dword [ebp + 0x24], 0
jle 0x46743c
cmp dword [ebp + 0x28], 0
jle 0x46743c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 8]
mov eax, edx
sub eax, dword [esp + 0x48]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x90], eax
mov eax, ecx
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov edx, dword [esi + 8]
mov eax, edx
sub eax, dword [ebp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xb4]
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46743c
movzx eax, byte [ebp + 0x30]
movups xmm0, xmmword [esp + 0x10]
mov dl, byte [edi + 0x18]
mov ecx, dword [edi + 0xc]
push eax
push dword [ebp + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004662a0
add esp, 0x2c
push dword [esp + 0x78]
push dword [edi + 0xc]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [esp + 0x7c]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.0053436b
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [esp + 0x98]
dec eax
add eax, ecx
cdq
idiv edi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x466e5d
movzx eax, byte [ebp + 0x30]
mov dword [esp + 0x68], eax
xor eax, eax
nop dword [eax + eax]
mov edx, dword [esp + 0x90]
lea esi, [eax + edx]
add eax, edi
mov dword [esp + 0x64], eax
add eax, edx
mov dword [esp + 0x6c], esi
mov edx, edi
mov esi, dword [esp + 0x24]
cmp eax, ecx
jle 0x4674c6
sub edx, eax
mov eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x6c]
push dword [esp + 0x68]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x98]
add dword [esp + 0xa0], eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x20]
push dword [ebp + 0x10]
mov dword [esp + 0x98], ecx
mov ecx, dword [esi]
sub esp, 0x10
add ecx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
lea eax, [ecx + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x28]
push dword [esp + 0x38]
movups xmmword [eax], xmm0
sub esp, 0x10
movups xmm0, xmmword [esp + 0xbc]
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x64]
mov dl, byte [eax + 0x18]
mov ecx, dword [eax + 0xc]
call fcn.004662a0
add esp, 0x2c
sub dword [esp + 0x34], 1
je 0x466e5d
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x64]
jmp 0x4674a0