Function at 0x401470
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x40a206
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x411040]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x411040]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
push 0x12
xor edi, edi
call fcn.00402360
mov esi, eax
add esp, 4
lea ecx, [edi + 0x65]
push esi
mov dword [esi], 0x65006b
mov dword [esi + 4], 0x6e0072
mov dword [esi + 0xe], 0x32
mov dword [esi + 0xa], 0x33006c
mov word [esi + 8], cx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov ebp, eax
call fcn.00402369
add esp, 4
test ebp, ebp
je 0x40188f
push 0x19
mov dword [esp + 0x28], 0x22c
call fcn.00402360
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esp, 4
mov dword [esi + 0x14], 0x746f6873
push esi
push ebp
mov dword [esi + 6], 0x6c6f6f54
mov dword [esi + 0xb], 0x33706c65
mov byte [esi + 0x18], 0
mov dword [esi + 0x10], 0x70616e53
mov word [esi + 1], 0x6572
mov word [esi + 4], 0x6574
mov byte [esi + 0xf], 0x32
mov byte [esi], 0x43
mov byte [esi + 0xa], 0x68
mov byte [esi + 3], 0x61
call ebx
push esi
mov dword [0x412db0], eax
call fcn.00402369
mov eax, dword [0x412db0]
add esp, 4
test eax, eax
je 0x40188f
push edi
push 2
call eax
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40188f
push 0x10
call fcn.00402360
mov esi, eax
add esp, 4
mov word [esi + 0xd], 0x5774
push esi
push ebp
mov word [esi + 0xa], 0x7269
mov dword [esi], 0x636f7250
mov byte [esi + 0xc], 0x73
mov word [esi + 7], 0x3233
mov word [esi + 4], 0x7365
mov byte [esi + 0xf], 0
mov byte [esi + 6], 0x73
mov byte [esi + 9], 0x46
call ebx
push esi
mov dword [0x412dac], eax
call fcn.00402369
mov eax, dword [0x412dac]
add esp, 4
test eax, eax
je 0x401846
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x20]
call eax
cmp eax, 1
jne 0x401846
push 0xf
call fcn.00402360
mov esi, eax
add esp, 4
mov word [esi + 0xc], 0x5774
push esi
push ebp
mov word [esi + 6], 0x3373
mov dword [esi + 1], 0x65636f72
mov word [esi + 9], 0x654e
mov byte [esi + 5], 0x73
mov byte [esi + 0xe], 0
mov byte [esi], 0x50
mov byte [esi + 0xb], 0x78
mov byte [esi + 8], 0x32
call ebx
push esi
mov dword [0x412da4], eax
call fcn.00402369
add esp, 4
cmp dword [0x412da4], edi
je 0x401846
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401e50
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], 0
call fcn.00401e50
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.004018d0
lea ecx, [esp + 0x14]
call fcn.004018d0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x401698
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
call fcn.00401c40
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x4016b6
push dword [eax - 0xc]
lea ecx, [esp + 0x1c]
call fcn.00401c40
mov eax, dword [esp + 0x18]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4016dc
test cx, cx
je 0x4016d8
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4016dc
add eax, 4
add esi, 4
test cx, cx
jne 0x4016b6
xor eax, eax
jmp 0x4016e1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017df
push 0xc
call fcn.00402360
mov esi, eax
add esp, 4
mov word [esi + 1], 0x6570
push esi
push ebp
mov byte [esi], 0x4f
mov word [esi + 9], 0x7373
mov dword [esi + 4], 0x636f7250
mov byte [esi + 3], 0x6e
mov byte [esi + 8], 0x65
mov byte [esi + 0xb], 0
call ebx
push esi
mov dword [0x412da8], eax
call fcn.00402369
mov eax, dword [0x412da8]
add esp, 4
test eax, eax
je 0x4017df
push dword [esp + 0x2c]
push 0
push 0x401
call eax
push 0x11
mov edi, eax
call fcn.00402360
mov esi, eax
add esp, 4
mov word [esi + 4], 0x6e69
push esi
push ebp
mov dword [esi + 0xb], 0x7365636f
mov word [esi + 0xf], 0x73
mov dword [esi + 7], 0x72506574
mov dword [esi], 0x6d726554
mov byte [esi + 6], 0x61
call ebx
push esi
mov dword [0x412db4], eax
call fcn.00402369
mov eax, dword [0x412db4]
add esp, 4
test eax, eax
je 0x401795
push 0
push edi
call eax
push 0xc
call fcn.00402360
mov esi, eax
add esp, 4
mov dword [esi], 0x736f6c43
push esi
push ebp
mov dword [esi + 5], 0x646e6148
mov word [esi + 9], 0x656c
mov byte [esi + 4], 0x65
mov byte [esi + 0xb], 0
call ebx
push esi
mov dword [0x412db8], eax
call fcn.00402369
mov eax, dword [0x412db8]
add esp, 4
test eax, eax
je 0x4017da
push edi
call eax
mov edi, 1
mov byte [esp + 0x25c], 0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401805
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x25c], 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40182e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x401642
push 0xc
call fcn.00402360
mov esi, eax
add esp, 4
mov dword [esi + 1], 0x65736f6c
push esi
push ebp
mov dword [esi + 8], 0x656c64
mov word [esi + 5], 0x6148
mov byte [esi], 0x43
mov byte [esi + 7], 0x6e
call ebx
push esi
mov dword [0x412db8], eax
call fcn.00402369
mov ecx, dword [0x412db8]
add esp, 4
test ecx, ecx
je 0x40188f
push dword [esp + 0x1c]
call ecx
mov eax, edi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00402226
add esp, 0x24c
ret