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

Disassembly:
push 0xffffffffffffffff
push 0x462dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e820]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 0
call fcn.00402ff0
add esp, 4
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.0040acb0
lea ecx, [esp + 0x38]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00403fe0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call fcn.0040ae60
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x40276c
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40273b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402b7b
mov ebp, dword [esp + 0x40]
lea esi, [ebp - 0x10]
push esi
mov dword [esp + 0x30], esi
call fcn.0040acb0
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push 2
push 0x46e944
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.004097f0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4027c9
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4027c9
push ebx
push eax
call fcn.00449d25
add esp, 8
test eax, eax
je 0x4027c9
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
jne 0x402839
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x38], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027ea
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 + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40280f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b7b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x402b7b
test edi, edi
mov eax, dword [ecx - 0xc]
jl 0x4027c9
cmp edi, eax
jg 0x4027c9
lea eax, [edi + ecx]
push 0x46e948
push eax
call fcn.00449d25
add esp, 8
test eax, eax
je 0x4027c9
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402871
mov esi, dword [esp + 0x2c]
jmp 0x4027c9
call fcn.0042fdf3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40288b
push 0x80004005
call fcn.0040aa40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 4
mov byte [esp + 0x38], bl
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, edi
sub esi, 2
push esi
lea ecx, [eax + edi + 2]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.00409300
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 5
call fcn.0040ae60
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 0x4028f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jl 0x402917
push 0x46e94c
push esi
call fcn.00449d25
add esp, 8
test eax, eax
je 0x402917
sub eax, esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402993
add esi, 0xfffffff0
mov byte [esp + 0x38], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402938
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x38], 1
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 0x40295d
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 + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x2c]
jmp 0x40274a
mov eax, dword [esi - 0xc]
lea ebx, [ebp + 1]
test ebx, ebx
jl 0x402b57
cmp ebx, eax
jg 0x402b57
lea ecx, [ebx + esi]
push 0x46e94c
push ecx
call fcn.00449d25
add esp, 8
test eax, eax
je 0x402b57
sub eax, esi
mov edi, eax
cmp edi, 0xffffffff
je 0x402b57
lea ecx, [esp + 0x2c]
call fcn.0040b100
lea ecx, [esp + 0x28]
call fcn.0040b100
lea ecx, [esp + 0x24]
call fcn.0040b100
push ebp
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 8
call fcn.00409430
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 9
call fcn.0040ae60
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 8
call fcn.0040b0e0
mov eax, edi
sub eax, ebp
sub eax, 1
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409300
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.0040ae60
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 8
call fcn.0040b0e0
mov eax, dword [esi - 0xc]
sub eax, edi
sub eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.004093b0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xb
call fcn.0040ae60
lea ecx, [esp + 0x20]
call fcn.0040b0e0
lea ecx, [esp + 0x20]
call fcn.0040b100
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xc
call fcn.00409870
push eax
call fcn.00402310
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00409790
add esp, 0x10
test al, al
je 0x402b33
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
call fcn.0040ae60
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0040ae60
lea ecx, [esp + 0x20]
call fcn.0040b0e0
lea ecx, [esp + 0x24]
call fcn.0040b0e0
lea ecx, [esp + 0x28]
call fcn.0040b0e0
lea ecx, [esp + 0x2c]
call fcn.0040b0e0
lea ecx, [esp + 0x18]
call fcn.0040b0e0
lea ecx, [esp + 0x1c]
call fcn.0040b0e0
lea ecx, [esp + 0x14]
call fcn.0040b0e0
lea ecx, [esp + 0x40]
call fcn.0040b0e0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x20]
call fcn.0040b0e0
lea ecx, [esp + 0x24]
call fcn.0040b0e0
lea ecx, [esp + 0x28]
call fcn.0040b0e0
lea ecx, [esp + 0x2c]
call fcn.0040b0e0
lea ecx, [esp + 0x18]
call fcn.0040b0e0
lea ecx, [esp + 0x1c]
call fcn.0040b0e0
lea ecx, [esp + 0x14]
call fcn.0040b0e0
lea ecx, [esp + 0x40]
call fcn.0040b0e0
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