Function at 0x413ae0
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
xor ecx, ecx
lea eax, [esi + 0xa0]
mov edi, dword [ebp + 0x14]
pcmpeqd xmm0, xmm0
mov dword [esi + 0x10], 0
dec ecx
mov dword [eax - 4], esp
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x41d300
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, edi
mov dword [esi + 0x90], ecx
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
sub eax, dword [ebp + 0x10]
sar eax, 2
imul edx, eax, 0xaaaaaaab
cmp edx, 0x65
mov eax, edx
mov dword [esi + 0xc], edx
jb 0x413b83
push dword [esi + 0xc]
call fcn.0051abd0
add esp, 4
test eax, eax
je 0x413dfb
mov ecx, eax
mov dword [esi + 4], eax
jmp 0x413b8d
lea ecx, [esi + 0x30]
mov dword [esi + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], ecx
cmp eax, edi
je 0x413bc7
mov dword [esi + 0x10], 0
movzx edx, byte [eax]
test dl, 1
jne 0x413baa
shr edx, 1
jmp 0x413bad
mov edx, dword [eax + 4]
test edx, edx
je 0x413bb6
mov byte [ecx], 1
jmp 0x413bbf
dec dword [esi + 0xc]
inc dword [esi + 0x10]
mov byte [ecx], 2
add eax, 0xc
inc ecx
cmp edi, eax
jne 0x413b9e
xor eax, eax
mov dword [esi + 0xa8], 0
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [esi + 0xa8], 0
mov dword [esi + 8], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040532e
cmp dword [esi + 0xc], 0
je 0x413d98
xor al, 1
je 0x413d98
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x413c19
movzx eax, byte [eax]
mov dword [esi + 0x1c], eax
jmp 0x413c29
mov eax, dword [ecx]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x20]
mov dword [esi + 8], edx
call eax
mov dword [esi + 0x1c], eax
cmp byte [ebp + 0x20], 0
jne 0x413c49
mov edi, dword [ebp + 0x18]
mov ecx, dword [esi + 4]
movsx edx, byte [esi + 0x1c]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [esi + 8], ecx
mov ecx, edi
push edx
call eax
mov dword [esi + 0x1c], eax
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], 0
mov edx, edi
inc edi
mov dword [esi + 0x18], edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
mov dword [esi + 0x28], eax
je 0x413d05
cmp byte [edi], 1
jne 0x413cf9
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x24], edi
test byte [ecx], 1
jne 0x413c88
lea eax, [ecx + 1]
jmp 0x413c8b
mov eax, dword [ecx + 8]
mov al, byte [eax + edx]
cmp byte [ebp + 0x20], 0
jne 0x413cba
mov edi, dword [ebp + 0x18]
movsx eax, al
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 0xa8], 0
mov dword [esi + 8], ecx
mov ecx, edi
push eax
call edx
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
cmp byte [esi + 0x1c], al
jne 0x413cca
movzx eax, byte [ecx]
test al, 1
jne 0x413cd8
shr eax, 1
jmp 0x413cdb
mov edi, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
dec dword [esi + 0xc]
mov byte [edi], 0
jmp 0x413cf9
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
cmp eax, dword [esi + 0x18]
mov bl, 1
mov dword [esi + 0x2c], ebx
jne 0x413cf6
mov edi, dword [esi + 0x24]
dec dword [esi + 0xc]
inc dword [esi + 0x10]
mov byte [edi], 2
jmp 0x413cf9
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
inc edi
add eax, 0xc
jmp 0x413c64
mov edx, dword [esi + 0x18]
test byte [esi + 0x2c], 1
mov eax, edx
je 0x413bd3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x413d27
inc eax
mov dword [ecx + 0xc], eax
jmp 0x413d41
mov eax, dword [ecx]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x24]
mov dword [esi + 8], edx
mov dword [esi + 0xa8], 0
call eax
mov edx, dword [esi + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, edx
cmp dword [ebp + 0x10], edi
je 0x413bd3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add eax, ecx
cmp eax, 2
mov eax, edx
jb 0x413bd3
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
cmp byte [ecx], 2
jne 0x413d89
movzx ebx, byte [eax]
test bl, 1
jne 0x413d79
shr ebx, 1
jmp 0x413d7c
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x18]
cmp ebx, edx
je 0x413d89
dec dword [esi + 0x10]
mov byte [ecx], 0
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x413d68
mov eax, edx
jmp 0x413bd3
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [esi + 8], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040532e
mov edx, dword [ebp + 0x1c]
test al, al
je 0x413db4
or byte [edx], 2
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, edi
je 0x413dce
cmp byte [ecx], 2
je 0x413dd3
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x413dc1
or byte [edx], 4
jmp 0x413dd5
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x413de5
push eax
call fcn.0051a200
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
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xa8], eax
call fcn.0041d6cc
push ebp
push eax
lea esi, [ebp - 0xac]
mov ebp, dword [esi + 0x98]
mov eax, dword [esi + 8]
test eax, eax
je 0x413e29
push eax
call fcn.0051a200
add esp, 4
add esp, 4
pop ebp
ret