Function at 0x4059f0
Capabilities:
Acquire debug privileges
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x414098
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x41a060]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a060]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b4]
mov dword [esp + 0x38], eax
xor edi, edi
mov dword [esp + 0x2a8], edi
mov dword [esp + 0x2c], edi
call fcn.00405590
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [0x415240]
lea edx, [esp + 0x24]
push edx
push 0x20
mov dword [esp + 0x2c], edi
call dword [0x415058]
push eax
call dword [0x415024]
test eax, eax
je 0x405aac
lea eax, [esp + 0x50]
push eax
push str.SeDebugPrivilege
push edi
call dword [0x415018]
mov edx, dword [esp + 0x24]
push edi
push edi
push 0x10
lea ecx, [esp + 0x58]
push ecx
push edi
push edx
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], 2
call dword [0x415004]
mov eax, dword [esp + 0x24]
push eax
call dword [0x415168]
mov ecx, dword [esp + 0x28]
push ecx
push edi
push 0x1f0fff
call dword [0x41506c]
mov esi, eax
cmp esi, edi
jne 0x405af5
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x2b0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405d67
push 4
push 0x1000
push 0x40
push edi
mov edi, dword [0x415148]
push esi
call edi
push 4
push 0x1000
push 0x200
push 0
push esi
mov ebp, eax
call edi
push 4
push 0x1000
push 0x10
push 0
push esi
mov dword [esp + 0x2c], eax
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x405d45
test ebp, ebp
je 0x405d45
mov eax, dword [esp + 0x18]
push 0
push 0
cdq
push 0x1004
push ebx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x8c], 0x200
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
call dword [0x415228]
xor edi, edi
test eax, eax
mov dword [esp + 0x34], eax
jle 0x405cdb
xor ecx, ecx
cmp dword [esp + 0x2b0], ecx
setne cl
mov dword [esp + 0x30], ecx
push 0
push 0x40
lea edx, [esp + 0x64]
push edx
push ebp
push esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 0
call dword [0x4150a0]
push ebp
push edi
push 0x102d
push ebx
call dword [0x415228]
mov ecx, dword [esp + 0x18]
push 0
push 0x200
lea eax, [esp + 0xa4]
push eax
push ecx
push esi
call dword [0x415054]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xa0]
call fcn.00406650
cmp dword [esp + 0x30], 0
je 0x405c63
mov ecx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x20]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405c26
test dx, dx
je 0x405c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x405c00
xor eax, eax
jmp 0x405c2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x405c6d
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 0x405c54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp edi, dword [esp + 0x34]
jl 0x405b95
jmp 0x405cdb
push 0x80004005
call fcn.00401050
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push 0x100e
push ebx
call dword [0x415228]
mov eax, dword [esp + 0x1c]
push 0
push 0x10
lea edx, [esp + 0x44]
push edx
push eax
push esi
call dword [0x415054]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [0x415094]
push 0x8000
push 0
push ebp
push esi
call edi
mov ecx, dword [esp + 0x18]
push 0x8000
push 0
push ecx
push esi
call edi
mov edx, dword [esp + 0x1c]
push 0x8000
push 0
push edx
push esi
call edi
push esi
call dword [0x415168]
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x2b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
jmp 0x405d75
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x2b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004094b1
add esp, 0x298
ret 8