Function at 0x407e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f2100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [ebx + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x24], ecx
push ebx
mov ecx, esi
call dword [0x585548]
lea edx, [ebx + 4]
push edx
lea ecx, [esi + 4]
call dword [0x585548]
mov eax, dword [ebx + 0x28]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
call fcn.00409400
xor ecx, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], ecx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x34], eax
cmp eax, 8
jge 0x407f0e
mov dword [esi + 0x34], 8
mov eax, dword [esi + 0x34]
dec eax
sar eax, 0x10
inc eax
mov dword [esi + 0x38], eax
cmp eax, ecx
je 0x407f8d
lea ecx, [eax*4]
push ecx
call fcn.0055053c
xor edi, edi
add esp, 4
mov dword [esi + 0x30], eax
mov dword [ebp - 0x14], 0x10000
cmp dword [esi + 0x38], edi
jle 0x407f8d
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x38]
jne 0x407f56
mov eax, dword [esi + 0x34]
mov edx, edi
shl edx, 0x10
sub eax, edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
shl ebx, 5
push ebx
call fcn.0055053c
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp + 8]
mov dword [ecx + edi*4], eax
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + edi*4]
mov edx, dword [esi + 0x30]
mov eax, dword [edx + edi*4]
push ebx
push ecx
push eax
call fcn.00552f66
mov edi, dword [ebp - 0x18]
add esp, 0x10
cmp edi, dword [esi + 0x38]
jl 0x407f3e
mov ebx, dword [ebp + 8]
add esi, 0x2c
cmp dword [esi], 0
mov dword [ebp - 0x20], esi
je 0x407f9f
mov ecx, esi
call fcn.00409440
mov dword [esi], 0
cmp dword [ebx + 0x2c], 0
je 0x4080d4
push 0x1c
call fcn.0055053c
mov dword [esi], eax
xor edi, edi
mov ecx, eax
mov dword [ecx], edi
mov edx, dword [esi]
mov dword [edx + 4], edi
mov eax, dword [esi]
mov dword [eax + 8], edi
mov ecx, dword [esi]
mov dword [ecx + 0xc], edi
mov edx, dword [esi]
mov dword [edx + 0x10], edi
mov eax, dword [esi]
mov dword [eax + 0x14], edi
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x18], edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebx + 0x2c]
mov eax, dword [ecx + edx]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4080c5
add eax, 8
test byte [eax], 4
je 0x40800f
lea ecx, [ecx]
add eax, 0xc
inc edi
test byte [eax - 0xc], 8
jne 0x40800f
test byte [eax], 4
jne 0x408000
xor ecx, ecx
mov eax, edi
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0055053c
add esp, 4
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x408061
push 0x4086d0
push 0x408620
push edi
lea esi, [eax + 4]
push 0xc
push esi
mov dword [eax], edi
call fcn.00553115
mov eax, esi
mov dword [ebp - 0x10], eax
jmp 0x408066
mov dword [ebp - 0x10], ecx
mov eax, ecx
mov dword [ebp - 4], 0xffffffff
test edi, edi
jle 0x4080aa
mov ecx, dword [ebp - 0x18]
mov ebx, ecx
sub ecx, eax
lea esi, [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [esi - 4]
call dword [0x585548]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + esi]
mov dword [esi], edx
mov eax, dword [ebx + 8]
mov dword [esi + 4], eax
add ebx, 0xc
add esi, 0xc
dec dword [ebp - 0x18]
jne 0x408081
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
lea ecx, [edi + edi*2]
or dword [eax + ecx*4 - 4], 8
lea ecx, [eax + ecx*4 - 4]
mov ecx, dword [edx]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx], eax
mov ecx, edx
xor edi, edi
add ecx, 4
mov dword [ebp - 0x14], ecx
cmp ecx, 0x1c
jl 0x407fe4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4