Function at 0x418800
Capabilities:
Access peb ldr_data
Get ntdll base address

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], 0x420670
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 + 0x18], 0
mov eax, edx
mov dword [esi + 0xc], edx
cmp edx, 0x65
jb 0x4188ac
push dword [esi + 0xc]
call fcn.0052a490
add esp, 4
mov ecx, eax
mov dword [esi], eax
test eax, eax
jne 0x4188b5
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xa8], eax
call fcn.004209bc
lea ecx, [esi + 0x30]
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [esi + 0x14], ecx
je 0x4188ef
mov dword [esi + 0x18], 0
movzx edx, byte [eax]
test dl, 1
jne 0x4188d2
shr edx, 1
jmp 0x4188d5
mov edx, dword [eax + 4]
test edx, edx
je 0x4188de
mov byte [ecx], 1
jmp 0x4188e7
mov byte [ecx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp edi, eax
jne 0x4188c6
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0xa8], 0
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov eax, dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xa8], 0
mov ecx, dword [ebp + 8]
call fcn.0041fda4
mov ebx, eax
mov edx, dword [esi + 0x20]
test edx, edx
je 0x418931
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x418937
movzx eax, word [eax]
jmp 0x41894e
mov al, 1
xor edx, edx
jmp 0x41895d
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
mov ecx, dword [esi]
mov dword [esi + 4], ecx
mov ecx, edx
mov byte [esi + 0x10], bl
call eax
mov bl, byte [esi + 0x10]
mov edx, dword [esi + 0x20]
cmp ax, 0xffff
sete al
mov ecx, 0
cmove edx, ecx
mov dword [esi + 0x20], edx
cmp dword [esi + 0xc], 0
je 0x418b05
xor bl, al
je 0x418b05
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x418988
movzx eax, word [eax]
mov word [esi + 0xa], ax
jmp 0x418998
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov edx, dword [esi]
mov dword [esi + 4], edx
call eax
mov word [esi + 0xa], ax
cmp byte [ebp + 0x20], 0
jne 0x4189b8
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi]
mov dword [esi + 4], ecx
movzx edx, word [esi + 0xa]
mov ecx, edi
push edx
call eax
mov word [esi + 0xa], ax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
lea edi, [edx + 1]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
je 0x418a73
cmp byte [edi], 1
jne 0x418a6a
test byte [eax], 1
mov dword [esi + 0x10], eax
jne 0x4189f1
add eax, 2
jmp 0x4189f4
mov eax, dword [eax + 8]
movzx eax, word [eax + edx*2]
cmp byte [ebp + 0x20], 0
jne 0x418a26
mov dword [esi + 0x2c], edi
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [esi]
mov dword [esi + 4], ecx
mov dword [esi + 0xa8], 0
movzx eax, ax
mov ecx, edi
push eax
call edx
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x2c]
cmp word [esi + 0xa], ax
jne 0x418a3c
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx]
test al, 1
jne 0x418a4a
mov edx, ecx
shr eax, 1
jmp 0x418a4f
mov byte [edi], 0
dec dword [esi + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x10]
jmp 0x418a6a
mov edx, ecx
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [esi + 0x28], ebx
cmp eax, dword [esi + 0x24]
jne 0x418a65
mov byte [edi], 2
dec dword [esi + 0xc]
inc dword [esi + 0x18]
mov eax, edx
mov edx, dword [esi + 0x1c]
add eax, 0xc
inc edi
jmp 0x4189d3
mov ecx, dword [esi + 0x24]
test byte [esi + 0x28], 1
je 0x418901
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x418a95
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x418aab
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov edx, dword [esi]
mov dword [esi + 4], edx
mov dword [esi + 0xa8], 0
call eax
mov edx, dword [esi + 0x24]
mov ecx, edx
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], edi
je 0x418901
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
add eax, ecx
mov ecx, edx
cmp eax, 2
jb 0x418901
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
cmp byte [ecx], 2
jne 0x418af6
movzx ebx, byte [eax]
test bl, 1
jne 0x418ae6
shr ebx, 1
jmp 0x418ae9
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x24]
cmp ebx, edx
je 0x418af6
mov byte [ecx], 0
dec dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x418ad5
mov ecx, edx
jmp 0x418901
mov eax, dword [esi]
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
call fcn.0041fda4
mov ecx, eax
mov edx, dword [esi + 0x20]
test edx, edx
je 0x418b2b
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
mov edi, dword [ebp + 0x14]
je 0x418b3a
movzx eax, word [eax]
jmp 0x418b51
test cl, cl
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
je 0x418b73
jmp 0x418b62
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
mov byte [esi + 0x10], cl
mov ecx, dword [esi]
mov dword [esi + 4], ecx
mov ecx, edx
call eax
mov cl, byte [esi + 0x10]
mov edi, dword [ebp + 0x14]
cmp ax, 0xffff
sete al
xor cl, al
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x14]
jne 0x418b73
mov edx, dword [ebp + 0x1c]
or byte [edx], 2
jmp 0x418b73
cmp byte [ecx], 2
je 0x418b7f
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x418b6a
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
jmp 0x418b81
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x418b90
push eax
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