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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b198
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b185c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
lea edi, [esi + 0x18]
mov dword [esp + 0x1c], edi
mov eax, dword [edi]
mov edx, dword [eax + 4]
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, edi
mov byte [esp + 0x20], 1
call edx
mov dword [esp + 0x30], ebx
push esi
call fcn.004018f0
cmp dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
jg 0x401432
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], edx
cmp eax, ebx
je 0x4014a5
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x401459
cmp word [ecx], bx
jne 0x40151c
mov eax, dword [eax + 0x10]
cmp eax, 0x4b8
je 0x40151c
cmp eax, ebx
jne 0x401475
call dword [sym.imp.KERNEL32.dll_GetACP]
mov edx, dword [esp + 0x10]
cmp eax, 0x3b6
ja 0x401497
cmp eax, 0x3b5
jae 0x40151c
sub eax, 0x3a4
je 0x40151c
sub eax, 4
jmp 0x4014a3
cmp eax, 0x551
je 0x40151c
cmp eax, 0xd698
je 0x40151c
mov eax, dword [edx]
cmp eax, ebx
je 0x4014f7
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x4014b7
cmp word [ecx], bx
jne 0x40151c
mov eax, dword [eax + 0x10]
cmp eax, 0x4b8
je 0x40151c
cmp eax, ebx
jne 0x4014cf
call dword [sym.imp.KERNEL32.dll_GetACP]
mov edx, dword [esp + 0x10]
cmp eax, 0x3b6
ja 0x4014e9
cmp eax, 0x3b5
jae 0x40151c
sub eax, 0x3a4
je 0x40151c
sub eax, 4
jmp 0x4014f5
cmp eax, 0x551
je 0x40151c
cmp eax, 0xd698
je 0x40151c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, ebx
je 0x401505
mov eax, dword [eax + 0x10]
jmp 0x401507
xor eax, eax
mov esi, dword [edx]
cmp esi, ebx
je 0x401512
mov ecx, dword [esi + 0x10]
jmp 0x401514
xor ecx, ecx
cmp eax, ecx
je 0x4015d1
mov esi, dword [edx]
cmp esi, ebx
je 0x401539
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40152e
cmp word [eax], bx
jne 0x401566
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x401539
cmp byte [eax], bl
jne 0x401540
mov edi, 0x49c3b0
jmp 0x40156b
cmp dword [esi + 8], ebx
jne 0x40155a
mov edx, dword [esi + 0xc]
add edx, edx
push edx
call fcn.0046b442
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [edx]
push eax
call fcn.0040c910
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov edi, dword [ecx + 8]
mov edx, dword [ebp + 8]
mov esi, dword [edx]
cmp esi, ebx
je 0x40158b
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x401580
cmp word [eax], bx
jne 0x4015bd
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40158b
cmp byte [eax], bl
jne 0x40159c
mov eax, 0x49c3b0
mov edx, edi
call fcn.00405380
jmp 0x40168b
cmp dword [esi + 8], ebx
jne 0x4015b2
mov eax, dword [esi + 0xc]
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0040c910
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
mov edx, edi
call fcn.00405380
jmp 0x40168b
cmp esi, ebx
je 0x4015ec
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4015e0
cmp byte [eax], bl
jne 0x401624
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4015ec
cmp word [eax], bx
jne 0x4015f3
mov edi, 0x49bf34
jmp 0x401629
cmp dword [esi + 4], ebx
jne 0x401618
mov eax, dword [esi + 0xc]
add eax, eax
cmp dword [esi + 0x10], 0x4b8
jne 0x401608
add eax, eax
push eax
call fcn.0046b442
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [edx]
push edx
call fcn.0040ca70
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
cmp esi, ebx
je 0x401649
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40163d
cmp byte [eax], bl
jne 0x40167c
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x401649
cmp word [eax], bx
jne 0x401650
mov ecx, 0x49bf34
jmp 0x401684
cmp dword [esi + 4], ebx
jne 0x401671
mov eax, dword [esi + 0xc]
add eax, eax
cmp dword [esi + 0x10], 0x4b8
jne 0x401665
add eax, eax
push eax
call fcn.0046b442
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040ca70
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov eax, edi
call fcn.00405320
cmp eax, ebx
je 0x4016ae
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x14], eax
jl 0x401430
mov edi, dword [esp + 0x1c]
jmp 0x401400
mov esi, dword [esp + 0x10]
mov eax, esi
call fcn.00401f20
test al, al
jne 0x4016d0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
jmp 0x40140c
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, esi
jmp 0x401413