Function at 0x416f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov edi, dword [ebp + 0x14]
lea eax, [esi + 0xa0]
mov dword [eax - 4], esp
xor ecx, ecx
dec ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x4205f0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, edi
sub eax, dword [ebp + 0x10]
sar eax, 2
imul edx, eax, 0xaaaaaaab
mov dword [esi + 0x90], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x10], 0
mov eax, edx
mov dword [esi + 0xc], edx
cmp edx, 0x65
jb 0x41703a
push dword [esi + 0xc]
call fcn.0052a490
add esp, 4
mov ecx, eax
test eax, eax
jne 0x41703f
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xa8], eax
call fcn.004209bc
lea ecx, [esi + 0x30]
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [esi + 0x14], ecx
je 0x41707c
mov dword [esi + 0x10], 0
movzx edx, byte [eax]
test dl, 1
jne 0x41705f
shr edx, 1
jmp 0x417062
mov edx, dword [eax + 4]
test edx, edx
je 0x41706b
mov byte [ecx], 1
jmp 0x417074
mov byte [ecx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
add eax, 0xc
inc ecx
cmp edi, eax
jne 0x417053
mov dword [esi + 0xa8], 0
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00402fb0
cmp dword [esi + 0xc], 0
je 0x41724d
xor al, 1
je 0x41724d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4170ce
movzx eax, byte [eax]
mov dword [esi + 0x1c], eax
jmp 0x4170de
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov edx, dword [esi + 4]
mov dword [esi + 8], edx
call eax
mov dword [esi + 0x1c], eax
cmp byte [ebp + 0x20], 0
jne 0x4170fe
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 8], ecx
movsx edx, byte [esi + 0x1c]
mov ecx, edi
push edx
call eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x20]
mov edx, edi
inc edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x2c], 0
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
cmp eax, ecx
je 0x4171ba
cmp byte [edi], 1
jne 0x4171ae
mov dword [esi + 0x24], edi
mov ecx, dword [esi + 0x28]
test byte [ecx], 1
jne 0x41713d
lea eax, [ecx + 1]
jmp 0x417140
mov eax, dword [ecx + 8]
mov al, byte [eax + edx]
cmp byte [ebp + 0x20], 0
jne 0x41716f
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xa8], 0
movsx eax, al
mov ecx, edi
push eax
call edx
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
cmp byte [esi + 0x1c], al
jne 0x41717f
movzx eax, byte [ecx]
test al, 1
jne 0x41718d
shr eax, 1
jmp 0x417190
mov edi, dword [esi + 0x24]
mov byte [edi], 0
dec dword [esi + 0xc]
mov ecx, dword [ebp + 0x14]
jmp 0x4171ae
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [esi + 0x2c], ebx
cmp eax, dword [esi + 0x18]
jne 0x4171ab
mov edi, dword [esi + 0x24]
mov byte [edi], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
jmp 0x4171ae
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add eax, 0xc
inc edi
jmp 0x417119
mov edx, dword [esi + 0x18]
mov ecx, edx
test byte [esi + 0x2c], 1
je 0x417088
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4171dc
inc eax
mov dword [ecx + 0xc], eax
jmp 0x4171f6
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov edx, dword [esi + 4]
mov dword [esi + 8], edx
mov dword [esi + 0xa8], 0
call eax
mov edx, dword [esi + 0x18]
mov ecx, edx
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], edi
je 0x417088
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add eax, ecx
mov ecx, edx
cmp eax, 2
jb 0x417088
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
cmp byte [ecx], 2
jne 0x41723e
movzx ebx, byte [eax]
test bl, 1
jne 0x41722e
shr ebx, 1
jmp 0x417231
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x18]
cmp ebx, edx
je 0x41723e
mov byte [ecx], 0
dec dword [esi + 0x10]
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x41721d
mov ecx, edx
jmp 0x417088
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00402fb0
test al, al
mov ebx, dword [ebp + 0x1c]
je 0x417269
or byte [ebx], 2
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x14]
je 0x417286
cmp byte [edx], 2
je 0x41728b
add eax, 0xc
inc edx
cmp eax, edi
jne 0x417279
or byte [ebx], 4
jmp 0x41728d
mov edi, eax
test ecx, ecx
je 0x41729a
push ecx
call fcn.00529c90
add esp, 4
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret