Function at 0x402516
Capabilities:
Create process on windows
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x4040ac]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], esi
call fcn.00403141
push esi
mov dword [0x4040f8], eax
call fcn.00402492
xor ebx, ebx
cmp dword [0x4040f4], ebx
je 0x40255f
call fcn.004022de
xor eax, eax
inc eax
jmp 0x4027a7
push edi
call fcn.0040236e
test eax, eax
je 0x4027a7
cmp dword [0x4040f8], ebx
jne 0x40258d
xor eax, eax
cmp dword [0x4040f0], ebx
setne al
push eax
mov eax, dword [0x4040e4]
push dword [eax]
call sub.MSUTB.dll_GetPopupTipbar
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x168], 6
jne 0x402665
push 0x4011ec
call fcn.004030a1
cmp eax, ebx
je 0x402665
mov esi, 0x401230
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x401214
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402665
mov esi, 0x104
push esi
lea ecx, [ebp - 0x114]
push ecx
call eax
cmp eax, ebx
je 0x402665
add eax, 0xc
cmp eax, esi
jae 0x402665
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x1bc], 0x44
mov word [ebp - 0x18c], 7
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x1bc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402665
push dword [ebp - 0x144]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x140]
call esi
cmp dword [0x4040f8], ebx
jne 0x40273a
push 0x4011fc
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x118], eax
jmp 0x40272e
mov eax, dword [ebp - 0x118]
push 0xc
pop ecx
push 0x4ff
push 0xffffffffffffffff
mov esi, 0x404108
lea edi, [ebp - 0x178]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x148], eax
push ebx
lea eax, [ebp - 0x178]
push eax
push 0xd
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0xd
jne 0x402708
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x4026f4
cmp dword [ebp - 0x130], 0x12
je 0x402774
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x134]
push ebx
push eax
call esi
test eax, eax
jne 0x4026cd
jmp 0x40272e
cmp eax, 0xc
jne 0x402726
push ebx
push 0x4015ac
call fcn.00402274
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x40272e
jae 0x402742
push eax
call fcn.00402be3
cmp dword [0x4040f8], ebx
je 0x40268d
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x402764
mov dword [ebp - 0x12c], ebx
jmp 0x402774
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x134]
push ebx
push eax
call esi
test eax, eax
jne 0x40274a
mov ecx, dword [0x4040e4]
cmp ecx, ebx
je 0x402785
push 1
call fcn.004024f0
cmp dword [0x4040bc], ebx
jne 0x402797
call fcn.00402468
call sub.MSCTF.dll_TF_UninitSystem
mov ecx, 0x4040c0
call fcn.00402206
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00402d1d
leave
ret 0x10