Function at 0x401160
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x708
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0x704], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push 0x208
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2fc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xf0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea eax, [esp + 0xf0]
push 0x5c
push eax
call esi
mov edi, eax
lea eax, [esp + 0xf8]
push 0x2f
push eax
call esi
mov esi, eax
add esp, 0x10
cmp edi, esi
cmova esi, edi
test esi, esi
je 0x40120a
lea eax, [esp + 0xf0]
sub esi, eax
sar esi, 1
push esi
push eax
lea eax, [esp + 0x300]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + esi*2 + 0x2f8], ax
xor eax, eax
mov dword [esp + 0xa0], 0
lea ecx, [esp + 0x2f8]
mov dword [esp + 0xa4], 7
mov word [esp + 0x90], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401234
sub ecx, edx
lea eax, [esp + 0x2f8]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x98]
call fcn.004018e0
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x401284
cmp dword [esp + 0x70], 0
je 0x401284
mov ecx, 1
jmp 0x401286
xor ecx, ecx
cmp ecx, 1
mov edx, str.x64This_War_of_Mine.exe
mov eax, str.win32This_War_of_Mine.exe
lea ecx, [esp + 0x90]
cmove eax, edx
push eax
call fcn.00401860
cmp dword [esp + 0xa4], 8
lea eax, [esp + 0x90]
mov edi, dword [esp + 0xa0]
cmovae eax, dword [esp + 0x90]
mov dword [esp + 0x14], eax
cmp edi, 8
jae 0x4012e2
movups xmm0, xmmword [eax]
mov dword [esp + 0x88], 7
movups xmmword [esp + 0x74], xmm0
jmp 0x401362
mov esi, edi
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x401846
add eax, eax
cmp eax, 0x1000
jb 0x40132f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401846
push ecx
call fcn.00401f54
add esp, 4
test eax, eax
je 0x40181e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x401342
test eax, eax
je 0x401340
push eax
call fcn.00401f54
add esp, 4
mov ecx, eax
jmp 0x401342
xor ecx, ecx
lea eax, [edi*2 + 2]
mov dword [esp + 0x74], ecx
push eax
push dword [esp + 0x18]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x88], esi
lea eax, [esp + 0x8c]
mov dword [esp + 0x84], edi
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x94], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], eax
cmp dword [esp + 0x8c], eax
jle 0x4015c7
nop
mov edx, dword [edi + eax*4]
xor eax, eax
mov ecx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4013c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004018e0
mov edx, dword [esp + 0x30]
mov eax, edx
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 1
jb 0x401472
cmp edx, 8
lea edi, [esp + 0x1c]
lea eax, [ecx + 1]
cmovae edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
cmp edi, 0x40321e
jae 0x40142c
lea eax, [edi + ecx*2]
cmp eax, 0x40321c
jb 0x40142c
cmp edi, 0x40321c
ja 0x401420
xor esi, esi
jmp 0x401431
mov esi, edi
sub esi, 0x40321c
sar esi, 1
jmp 0x401431
mov esi, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 2]
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
add esi, esi
push esi
push 0x40321c
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 2
sub eax, esi
push eax
lea eax, [esi + 0x40321e]
push eax
lea eax, [esi + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [esp + 0x1c]
jmp 0x40148b
push 1
sub esp, 8
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x28]
push dword [esp + 0x24]
push 1
call fcn.00401be0
movups xmm1, xmmword [eax]
lea edx, [esp + 0x40]
xor ecx, ecx
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov esi, dword [esp + 0x84]
movd eax, xmm1
movq qword [esp + 0x50], xmm0
cmp dword [esp + 0x54], 8
mov ecx, dword [esp + 0x50]
cmovae edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
sub eax, esi
movaps xmmword [esp + 0x40], xmm1
mov dword [esp + 0x34], esi
cmp ecx, eax
ja 0x40151d
cmp dword [esp + 0x88], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [esp + 0x84], edi
push eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x78]
cmovae esi, dword [esp + 0x78]
push edx
lea eax, [esi + eax*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x401539
push ecx
push edx
mov byte [esp + 0x44], 0
push dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x84]
call fcn.00401a40
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
cmp eax, 8
jb 0x401571
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401567
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181e
push edx
push ecx
call fcn.00401f84
add esp, 8
mov edx, dword [esp + 0x30]
cmp edx, 8
jb 0x4015ad
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4015a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181e
push edx
push ecx
call fcn.00401f84
add esp, 8
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x8c]
jl 0x4013a0
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
push dword [esp + 0x84]
cmovae eax, dword [esp + 0x78]
push eax
lea eax, [esp + 0x508]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [esp + 0x94]
add esp, 0x10
add eax, eax
cmp eax, 0x208
jae 0x40184b
xor ecx, ecx
mov dword [esp + 0xa8], 0x44
cmp dword [esp + 0xa4], 8
xorps xmm0, xmm0
mov word [esp + eax + 0x500], cx
lea eax, [esp + 0x90]
cmovae eax, dword [esp + 0x90]
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0xac]
movlpd qword [esp + 0xb0], xmm0
push ecx
push 0
push 0
push 0x200
push 0
push 0
push 0
lea ecx, [esp + 0x520]
movlpd qword [esp + 0xd4], xmm0
push ecx
push eax
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xec], xmm0
movlpd qword [esp + 0xf4], xmm0
movlpd qword [esp + 0xfc], xmm0
movlpd qword [esp + 0x104], xmm0
movlpd qword [esp + 0x10c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x17], al
call esi
push dword [esp + 0x64]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x13], 0
je 0x40178a
mov edx, dword [esp + 0x88]
cmp edx, 8
jb 0x401713
mov ecx, dword [esp + 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401709
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181e
push edx
push ecx
call fcn.00401f84
add esp, 8
mov edx, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
cmp edx, 8
jb 0x401772
mov ecx, dword [esp + 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401768
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181e
push edx
push ecx
call fcn.00401f84
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x704]
xor ecx, esp
call fcn.00401d48
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x88]
mov esi, eax
cmp edx, 8
jb 0x4017cd
mov ecx, dword [esp + 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4017c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181e
push edx
push ecx
call fcn.00401f84
add esp, 8
mov edx, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
cmp edx, 8
jb 0x40182e
mov ecx, dword [esp + 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401824
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f84
add esp, 8
mov ecx, dword [esp + 0x70c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00401d48
mov esp, ebp
pop ebp
ret 0x10
call fcn.004010c0
call fcn.00401e7a
int3