Function at 0x402d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x463530
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push 0x46ba98
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0
call fcn.00402120
push 0x46ba94
push eax
lea ecx, [esp + 0x30]
mov ebx, 1
push ecx
mov byte [esp + 0x4c], bl
call fcn.00403590
add esp, 0x14
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 2
call fcn.00402c00
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x44]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, ebx
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x402e59
push esi
lea ecx, [esp + 0x48]
call fcn.004018a0
mov ebp, dword [esp + 0x44]
lea ecx, [esi + 1]
push ecx
push ebp
call fcn.00448f79
add esp, 8
test esi, esi
jl 0x4031f7
cmp esi, dword [ebp - 8]
jg 0x4031f7
mov edx, dword [esp + 0x40]
mov dword [ebp - 0xc], esi
mov word [ebp + esi*2], 0
mov eax, dword [edx]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00404240
add esp, 8
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x402f01
mov byte [esp + 0x38], 0
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
add eax, 0xfffffff0
push eax
call fcn.00401a80
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], ebx
lea edi, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.004033c0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x402f4b
push ebp
push eax
call fcn.00448cc3
add esp, 8
test eax, eax
je 0x402f4b
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x402f7a
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
jmp 0x402ea9
mov eax, dword [ecx - 0xc]
add esi, dword [ebp - 0xc]
add eax, 0xffffffff
cmp esi, eax
jle 0x402fe1
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x402edd
push 0x46ba9c
lea ecx, [esp + 0x28]
call fcn.00401af0
mov byte [esp + 0x38], 5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x403024
test esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
jl 0x403024
cmp esi, ecx
jg 0x403024
push edx
lea ecx, [eax + esi*2]
push ecx
call fcn.00448cc3
add esp, 8
test eax, eax
je 0x403024
sub eax, dword [esp + 0x18]
sar eax, 1
mov edi, eax
call fcn.004268df
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40303e
push 0x80004005
call fcn.00401820
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
test esi, esi
mov byte [esp + 0x38], 6
je 0x40309d
sub esi, dword [ebp - 0xc]
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.00403450
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.00402c00
mov byte [esp + 0x38], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40309d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
je 0x403126
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.00403420
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
mov bl, 8
push eax
mov byte [esp + 0x44], bl
call fcn.004034d0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 9
call fcn.00402c00
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x1c]
push eax
call fcn.004043d0
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x38], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40315a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40317f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402eeb
push 0x80070057
call fcn.00401820
int3