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

Disassembly:
push 0xffffffffffffffff
push 0x4ce298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ebp, [ebx + 0xc]
push 0x3c
mov ecx, ebp
lea edi, [esp + 0x18]
mov dword [esp + 0x1c], ebp
call fcn.00460840
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov esi, dword [esp + 0x30]
push ecx
push eax
mov ecx, esi
call fcn.00409df0
mov dword [esp + 0x28], 0xffffffff
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 0x490cf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x3c]
neg eax
sbb eax, eax
mov dword [esp + 0x10], eax
je 0x490d69
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x490d25
push edi
mov ecx, esi
call fcn.00403c80
test edi, edi
mov eax, dword [esi]
mov word [eax + ebp*2], 0x20
jl 0x490dc5
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x490dc5
lea ecx, [esp + 0x10]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
push ecx
push ebx
mov word [eax + edi*2], 0
call fcn.00405700
mov edi, eax
call fcn.00491f50
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x490d02
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x18]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x490dcf
mov edx, dword [ebx + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x490dcf
push 0x4efa50
call fcn.004ac8fd
add esp, 4
push eax
push 0x4efa50
mov ecx, esi
call fcn.00409df0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x490ec5
push 0x4db0f0
mov ecx, esi
call fcn.0040df60
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push 0x80070057
call fcn.00403b70
push 0x3e
mov ecx, esi
call fcn.0040c9a0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x490df4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490e14
push 0x4db0f0
mov ecx, esi
call fcn.0040df60
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490e14
mov ecx, dword [eax]
push edi
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push esi
call fcn.00490c80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x490dfc
mov eax, dword [ebx + 0x10]
push esi
push eax
call fcn.00490040
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
mov edi, 0x4dff08
call fcn.0042f230
push 0x3e
push eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x40], 1
call fcn.00412730
add esp, 0x18
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00409df0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490e7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x28], 0xffffffff
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 0x490ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x490ec5
push 0x4db0f0
call fcn.004ac8fd
add esp, 4
push eax
push 0x4db0f0
mov ecx, esi
call fcn.00409df0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8