Function at 0x4013d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x405069
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x28], edi
mov esi, 1
mov dword [esp + 0x38], esi
mov eax, dword [0x408164]
mov edx, dword [eax + 0xc]
mov ecx, 0x408164
mov dword [esp + 0x20], 0x522
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x408164]
mov edx, dword [eax + 0xc]
mov ecx, 0x408164
mov dword [esp + 0x28], esi
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x38], 2
mov ecx, dword [ebx]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], edi
lea eax, [ecx - 0x10]
je 0x401497
cmp dword [eax + 0xc], edi
lea edx, [eax + 0xc]
jge 0x401473
cmp dword [ecx - 8], edi
jge 0x401469
push 0x80070057
call fcn.00403fe0
mov dword [ecx - 0xc], edi
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x401497
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx - 0xc]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], edi
test eax, eax
jle 0x40156d
mov dword [esp + 0x1c], edi
jmp 0x4014bb
mov edi, dword [esp + 0x1c]
test edi, edi
jl 0x40145f
cmp edi, esi
jg 0x40145f
mov dl, byte [edi + ecx]
lea eax, [edi + 1]
test eax, eax
jl 0x40145f
cmp eax, esi
jg 0x40145f
mov al, byte [eax + ecx]
movzx ecx, dl
imul ecx, ecx, 0x1a
movzx edx, al
lea eax, [ecx + edx - 0x6db]
mov dword [esp + 0x2c], eax
push 0x40631c
mov edi, 1
lea eax, [esp + 0x1c]
call fcn.00402ce0
mov ebp, dword [esp + 0x18]
mov esi, dword [ebp - 0xc]
test esi, esi
jle 0x40145f
cmp dword [ebp - 4], edi
jle 0x401520
mov ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402d70
mov ebp, dword [esp + 0x18]
mov al, byte [esp + 0x2c]
mov byte [ebp], al
test esi, esi
jl 0x40145f
cmp esi, dword [ebp - 8]
jg 0x40145f
mov dword [ebp - 0xc], esi
push ebp
mov byte [esi + ebp], 0
mov eax, dword [ebp - 0xc]
push ebx
call fcn.00403630
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx - 0xc]
mov edi, dword [esp + 0x24]
add dword [esp + 0x1c], 2
mov eax, esi
cdq
sub eax, edx
inc edi
sar eax, 1
cmp edi, eax
mov dword [esp + 0x24], edi
jl 0x4014b7
mov edx, dword [ebx]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x4015c5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4015b4
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4015b4
call fcn.00402e40
mov dword [esp + 0x2c], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4015a7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x2c]
add ecx, 0x10
mov dword [esp + 0x44], ecx
jmp 0x4015c5
mov edi, dword [edx - 0xc]
push edx
lea eax, [esp + 0x48]
call fcn.00402ce0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 0xc]
xor esi, esi
test eax, eax
jle 0x40166b
test esi, esi
jl 0x40145f
cmp esi, eax
jg 0x40145f
mov al, byte [esi + ecx]
mov byte [esp + 0x17], al
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
cmp esi, edi
jge 0x40145f
cmp dword [eax - 4], 1
jle 0x401605
mov ecx, edi
push ecx
push ebx
call fcn.00402d70
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
shr edx, 8
xor dl, byte [esp + 0x17]
mov byte [eax + esi], dl
test edi, edi
jl 0x40145f
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x40145f
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jg 0x40145f
movzx dx, byte [esi + ecx]
add dx, word [esp + 0x20]
mov edi, 0x3193
imul dx, di
mov edi, 0x58bf
sub di, dx
movzx edx, di
inc esi
cmp esi, eax
mov dword [esp + 0x20], edx
jl 0x4015d2
add ebp, 0xfffffff0
mov byte [esp + 0x38], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40168d
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret