Function at 0x402a00
Capabilities:
Create process on windows
Get system information on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x40a084]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
sub esp, 8
call fcn.00408459
test byte [0x40a5c0], 1
je 0x402a35
call fcn.004084fd
push 0x40a494
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, 1
mov byte [esp + 0xf], 0
call fcn.00402738
call dword [sym.imp.iertutil.dll_Ordinal_798]
test eax, eax
js 0x4030fa
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_downlevel_ole32_l1_1_0.dll_CoCreateGuid]
test eax, eax
jns 0x402a9c
mov eax, dword [0x401274]
mov esi, dword [0x40126c]
mov edi, dword [0x401270]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x401278]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp 0x402ab4
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
call dword [sym.imp.msIso.dll_Ordinal_207]
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
call dword [sym.imp.msIso.dll_Ordinal_207]
mov byte [eax + 0x10], bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00404211
push 0
push 1
push 0x401738
call dword [sym.imp.iertutil.dll_Ordinal_797]
test eax, eax
js 0x403039
push 0
push 0
push 4
lea eax, [esp + 0x40]
push eax
push 1
push 0
push dword [0x4010e4]
call dword [sym.imp.iertutil.dll_Ordinal_650]
test eax, eax
js 0x402b26
cmp dword [esp + 0x34], 0
jne 0x402b2e
push 1
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
mov eax, dword [section..data]
test eax, eax
je 0x402b5a
push eax
call dword [sym.imp.iertutil.dll_Ordinal_701]
mov ecx, eax
test ecx, ecx
js 0x402ba8
xor eax, eax
test ecx, ecx
sete al
mov dword [0x40a004], eax
mov dword [section..data], 0
cmp dword [0x40a004], 0
je 0x402ba8
push 0x401708
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402b9d
push 0x401724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402b9d
mov esi, esp
mov ecx, edi
push 1
call dword [0x40b1f0]
call edi
cmp esi, esp
je 0x402b9d
mov ecx, 4
int 0x29
push 0x40127c
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x10]
call fcn.00403160
push 0
push 0
push 1
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00404d2d
push 0x10000031
call dword [sym.imp.iertutil.dll_Ordinal_791]
test al, al
mov eax, 0x401280
jne 0x402be7
mov eax, 0x4012c8
push eax
call dword [sym.imp.api_ms_win_downlevel_shell32_l1_1_0.dll_SetCurrentProcessExplicitAppUserModelID]
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402bf3
sub edx, ecx
mov ecx, edi
sar edx, 1
push 1
push 0x40175c
inc edx
call fcn.004033f0
test al, al
je 0x402c27
call fcn.00403360
call dword [sym.imp.IEFRAME.dll_Ordinal_212]
xor ebx, ebx
jmp 0x403025
push 0x401670
push edi
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrStrIW]
mov esi, eax
test esi, esi
je 0x402ce3
mov ecx, 7
call fcn.00408529
movzx eax, word [esi + eax*2]
test ax, ax
je 0x402c59
cmp eax, 0x20
jne 0x402ce3
cmp esi, edi
je 0x402c64
cmp word [esi - 2], 0x20
jne 0x402ce3
xor esi, esi
mov dword [esp + 0x18], 0x80004005
mov edi, edi
push 0
push 0x401680
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x402cad
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ecx, esi
call fcn.004090ce
mov dword [esp + 0x18], eax
test eax, eax
js 0x402c70
jmp 0x402cb5
mov eax, dword [esp + 0x18]
test eax, eax
js 0x402ce3
mov edx, edi
lea ecx, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402cc0
sub edx, ecx
mov ecx, edi
sar edx, 1
push 1
push 0x401670
inc edx
call fcn.004033f0
jmp 0x403025
push 7
push 0x401650
push edi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x402d92
movzx eax, word [edi + 0xe]
lea esi, [edi + 0xe]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x402d2c
cmp word [esi], 0
je 0x402d2c
movzx eax, word [esi + 2]
add esi, 2
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
je 0x402d11
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
je 0x402d55
lea ecx, [ecx]
movzx eax, word [esi + 2]
add esi, 2
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x402d40
push 7
push 0x401660
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x402d92
cmp dword [esp + 0x10], eax
jne 0x402d88
call fcn.004032f0
push dword [ebp + 0x14]
mov byte [esp + 0x13], bl
push edi
call dword [sym.imp.IEFRAME.dll_Ordinal_251]
jmp 0x403023
mov ebx, 5
jmp 0x403025
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x402fbc
cmp dword [esp + 0x3c], 0
je 0x402fbc
cmp word [esp + 0xbc], 0xc
je 0x402fbc
call fcn.00408ff0
sub esp, 8
lea ecx, [esp + 0xe8]
call fcn.00409428
test al, al
je 0x403025
xor eax, eax
mov dword [esp + 0x64], 0
mov word [esp + 0xa2], ax
lea edx, [esp + 0xe0]
mov eax, ebx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [edx + 2]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x92], 0
mov dword [esp + 0x96], 0
mov dword [esp + 0x9a], 0
mov dword [esp + 0x9e], 0
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], ebx
mov word [esp + 0x90], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402ea2
sub edx, ecx
sar edx, 1
test edi, edi
je 0x402ed1
mov ecx, edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ec0
sub ecx, esi
sar ecx, 1
jmp 0x402ed3
xor ecx, ecx
lea eax, [ecx + 4]
xor ecx, ecx
add eax, edx
mov edx, 2
mov dword [esp + 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004036ed
mov esi, eax
add esp, 4
test esi, esi
je 0x403025
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x4017d8
call fcn.0040919c
test eax, eax
js 0x402fb1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call fcn.00409119
test eax, eax
js 0x402fb1
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0x4017dc
call fcn.00409119
test eax, eax
js 0x402fb1
mov edx, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.00409119
test eax, eax
js 0x402fb1
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
push esi
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402fb1
push 0xea60
push dword [esp + 0xb0]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xb0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004036e3
add esp, 4
jmp 0x403025
push 0x4017e4
push edi
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrStrIW]
mov esi, eax
test esi, esi
je 0x403013
mov ecx, 0xa
call fcn.00408529
movzx eax, word [esi + eax*2]
test ax, ax
je 0x402fe6
cmp eax, 0x20
jne 0x403013
cmp esi, edi
je 0x402ff1
cmp word [esi - 2], 0x20
jne 0x403013
mov edx, 0x4017fc
mov ecx, edi
call fcn.00403590
test al, al
je 0x403013
push dword [esp + 0x10]
push 1
push dword [ebp + 0x14]
push edi
call dword [sym.imp.IEFRAME.dll_Ordinal_258]
jmp 0x403023
push dword [esp + 0x10]
push 1
push dword [ebp + 0x14]
push edi
call dword [sym.imp.IEFRAME.dll_Ordinal_255]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0xf], 0
jne 0x4030fc
jmp 0x40303b
xor ebx, ebx
push 0
push 0
push 4
lea eax, [esp + 0x50]
push eax
push 1
push 1
push dword [0x4010dc]
call dword [sym.imp.iertutil.dll_Ordinal_650]
push 0
push 0
push 4
lea eax, [esp + 0x4c]
push eax
push 1
push 1
push dword [0x4010e0]
call dword [sym.imp.iertutil.dll_Ordinal_650]
cmp dword [0x40a008], 5
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov byte [esi + 1], 1
jbe 0x4030f4
sub esp, 8
call fcn.0040282a
test al, al
je 0x4030f4
mov ecx, dword [esp + 0x40]
xor eax, eax
or eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x17], 1
call dword [sym.imp.msIso.dll_Ordinal_207]
push 0x10000003
mov dword [esp + 0x54], eax
call dword [sym.imp.iertutil.dll_Ordinal_796]
mov dword [esp + 0x54], eax
mov edx, 0x401dfb
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x1f]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
sub esp, 8
call fcn.004025df
mov byte [esi + 1], 0
jmp 0x4030fc
xor ebx, ebx
push 0x40a494
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00408484
call fcn.00402772
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ecx
call fcn.00406da9
cmp dword [esp + 0x1c], 0
je 0x403139
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x2ec]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403a90
mov esp, ebp
pop ebp
ret 0x10