Function at 0x41eff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5607b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 8]
mov eax, esi
cdq
xor eax, edx
sub eax, edx
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x30], eax
lea eax, [edi - 1]
mov ebx, eax
imul ebx, esi
add ebx, ecx
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
cmp edi, ecx
je 0x41f1c3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x41f1a6
mov dword [esp + 0x1c], 0xffffffff
cmp esi, dword [esp + 0x10]
je 0x41f0d7
mov ecx, esi
imul ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x18]
lea eax, [ecx + ebx + 1]
mov edi, edi
movzx ecx, byte [eax - 1]
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
cmp ecx, dword [ebp + 0xc]
jne 0x41f0ce
add eax, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x10]
jne 0x41f0a0
mov ebx, dword [esp + 0x24]
jmp 0x41f197
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
inc esi
mov edi, esi
imul edi, dword [esp + 0x14]
cmp esi, dword [esp + 0x10]
je 0x41f197
mov eax, dword [esp + 0x18]
add eax, edi
mov cl, byte [eax + ebx]
mov dl, byte [eax + ebx + 1]
mov al, byte [eax + ebx + 2]
movzx ecx, cl
shl ecx, 8
movzx edx, dl
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
cmp ecx, dword [ebp + 0xc]
je 0x41f123
add edi, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x41f0e8
cmp dword [esp + 0x1c], 0
jl 0x41f0de
xor eax, eax
mov edi, vtable.CRgn.0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
push ecx
push esi
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x38]
call fcn.00434910
test eax, eax
je 0x41f1d8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41f164
xor ecx, ecx
jmp 0x41f167
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 4]
push 2
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x34]
call fcn.0043496a
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edi
call fcn.00408c70
inc esi
cmp esi, dword [esp + 0x10]
jl 0x41f081
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x18], ecx
dec dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], eax
cmp eax, edi
jne 0x41f075
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edi
call fcn.00408c70
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret