Function at 0x401160
Capabilities:
Create process on windows
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x208
mov eax, dword [0x415004]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x104]
mov dword [esp + 0xc], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x100]
mov dword [esp + 0x88], 0
mov dword [esp + 0x98], 0
lea edx, [ecx + 1]
mov dword [esp + 0x9c], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011c4
sub ecx, edx
lea eax, [esp + 0x100]
push ecx
push eax
lea ecx, [esp + 0x90]
call fcn.00401730
mov edi, dword [esp + 0x9c]
lea edx, [esp + 0x88]
mov esi, dword [esp + 0x98]
cmp edi, 0x10
cmovae edx, dword [esp + 0x88]
cmp esi, 1
jb 0x401238
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
jne 0x40122d
movzx eax, byte [ecx]
cmp al, 0x5c
jne 0x401224
xor eax, eax
jmp 0x401229
sbb eax, eax
or eax, 1
test eax, eax
je 0x401234
cmp ecx, edx
je 0x401238
dec ecx
jmp 0x401214
sub ecx, edx
jmp 0x40123b
or ecx, 0xffffffff
cmp esi, ecx
mov dword [esp + 0xa0], 0
lea eax, [esp + 0x88]
mov dword [esp + 0xb0], 0
cmovb ecx, esi
mov dword [esp + 0xb4], 0xf
cmp edi, 0x10
push ecx
cmovae eax, dword [esp + 0x8c]
lea ecx, [esp + 0xa4]
push eax
call fcn.00401730
push str.commoncef_25_percent.pak
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x5c]
call fcn.00401860
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4012a1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x401410
mov eax, 1
mov byte [esp + 0xf], 1
test al, 8
je 0x401331
mov edx, dword [esp + 0x24]
and eax, 0xfffffff7
mov dword [esp + 8], eax
cmp edx, 0x10
jb 0x40131c
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40130e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401719
push edx
push ecx
call fcn.00401992
mov eax, dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
test al, 4
je 0x401388
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], eax
cmp edx, 0x10
jb 0x401373
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401365
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401719
push edx
push ecx
call fcn.00401992
mov eax, dword [esp + 0x10]
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov byte [esp + 0x28], 0
test al, 2
je 0x4013d7
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x4013c2
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4013b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401719
push edx
push ecx
call fcn.00401992
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
jb 0x401580
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401719
jmp 0x401576
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 8]
mov esi, eax
call edi
mov eax, 1
test esi, esi
jle 0x4012d2
push str.commoncef_50_percent.pak
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x44]
call fcn.00401860
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40144e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40147a
mov eax, 3
jmp 0x4012d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 8]
mov esi, eax
call edi
mov eax, 3
test esi, esi
jle 0x4012d2
push str.commoncef_75_percent.pak
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x2c]
call fcn.00401860
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4014b8
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x4014e4
mov eax, 7
jmp 0x4012d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 8]
mov esi, eax
call edi
mov eax, 7
test esi, esi
jle 0x4012d2
push str.commonlibn12.22.dll
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x14]
call fcn.00401860
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x401522
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40154e
mov eax, 0xf
jmp 0x4012d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 8]
mov esi, eax
call edi
mov eax, 0xf
test esi, esi
jle 0x4012d2
mov byte [esp + 0xf], 0
jmp 0x4012db
push edx
push ecx
call fcn.00401992
add esp, 8
cmp byte [esp + 0xf], 0
je 0x401598
push 0x10
push 0x412d94
push 0x412da0
jmp 0x401689
xorps xmm0, xmm0
mov dword [esp + 0xb8], 0x44
push str.commonxd.exe
lea edx, [esp + 0xa4]
movlpd qword [esp + 0xc0], xmm0
lea ecx, [esp + 0x5c]
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
movlpd qword [esp + 0xd8], xmm0
movlpd qword [esp + 0xe0], xmm0
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0xf8], xmm0
movaps xmmword [esp + 0x74], xmm0
call fcn.00401860
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x401613
mov eax, dword [eax]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xbc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x6c]
mov esi, eax
cmp edx, 0x10
jb 0x40166d
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401663
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40171e
push edx
push ecx
call fcn.00401992
add esp, 8
push dword [esp + 0x70]
call edi
push dword [esp + 0x74]
call edi
test esi, esi
jne 0x401691
push 0x10
push 0x412d94
push 0x412dfc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0xb4]
cmp edx, 0x10
jb 0x4016c9
mov ecx, dword [esp + 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401723
push edx
push ecx
call fcn.00401992
add esp, 8
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x401701
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401723
push edx
push ecx
call fcn.00401992
add esp, 8
mov ecx, dword [esp + 0x20c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401984
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404c0c
call fcn.00404c0c
call fcn.00404c0c
int3