Function at 0x401530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x3c]
mov ax, word [edx]
mov word [ebp - 0x42], ax
add dword [ebp - 0x3c], 2
cmp word [ebp - 0x42], 0
jne 0x40158d
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
sar ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
shl edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004014b0
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov cx, word [eax]
mov word [ebp - 0x52], cx
mov edx, dword [ebp - 0x4c]
cmp cx, word [edx]
jne 0x401610
cmp word [ebp - 0x52], 0
je 0x401607
mov eax, dword [ebp - 0x50]
mov cx, word [eax + 2]
mov word [ebp - 0x54], cx
mov edx, dword [ebp - 0x4c]
cmp cx, word [edx + 2]
jne 0x401610
add dword [ebp - 0x50], 4
add dword [ebp - 0x4c], 4
cmp word [ebp - 0x54], 0
jne 0x4015cb
mov dword [ebp - 0x58], 0
jmp 0x401618
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
jne 0x401726
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401510
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401726
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x1c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dl, byte [ecx]
mov byte [ebp - 0x65], dl
mov eax, dword [ebp - 0x60]
cmp dl, byte [eax]
jne 0x4016f0
cmp byte [ebp - 0x65], 0
je 0x4016e7
mov ecx, dword [ebp - 0x64]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x66], dl
mov eax, dword [ebp - 0x60]
cmp dl, byte [eax + 1]
jne 0x4016f0
add dword [ebp - 0x64], 2
add dword [ebp - 0x60], 2
cmp byte [ebp - 0x66], 0
jne 0x4016b3
mov dword [ebp - 0x6c], 0
jmp 0x4016f8
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
jne 0x40171c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + edx*4]
mov dword [ebp - 8], ecx
jmp 0x401726
cmp dword [ebp - 0x30], 0
jne 0x401687
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x401747
cmp dword [ebp - 8], 0
je 0x401575
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret