Function at 0x40181b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov eax, 0x4113de
call fcn.00408950
sub esp, 0x6f4
push ebx
push esi
push edi
call fcn.00401547
test eax, eax
je 0x401a58
mov eax, dword [0x41fef8]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, 0x104
mov edi, 0x41e0c8
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
push 0x41e2d0
push edi
call fcn.00401058
add esp, 0xc
test eax, eax
je 0x401a58
mov edi, 0x41e3ec
push edi
push 0x41dec0
call fcn.004084b9
push esi
push 0x41dec0
push edi
call fcn.00401173
add esp, 0x14
test eax, eax
je 0x401a58
push 0x41ff00
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
mov eax, dword [0x41ff00]
cmp edx, ebx
mov dword [0x41fefc], edx
je 0x401a69
cmp eax, 3
jne 0x401a69
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
mov word [ebp - 0x230], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x28], bl
stosw word es:[edi], ax
lea edi, [ebp - 0x27]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x14]
push 2
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 2
push dword [edx + 4]
push ebx
push ebx
call edi
push ebx
push ebx
lea eax, [ebp - 0x28]
push 0xf
push eax
mov eax, dword [0x41fefc]
push 0xf
push dword [eax + 8]
push ebx
push ebx
call edi
mov cl, byte [ebp - 0x28]
lea eax, [ebp - 0x28]
cmp cl, bl
je 0x401948
cmp cl, 0x30
jl 0x401a58
cmp cl, 0x39
jg 0x401a58
mov cl, byte [eax + 1]
inc eax
jmp 0x40192c
lea eax, [ebp - 0x28]
push eax
call fcn.004094df
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
pop ecx
push eax
push ebx
push 0x410
mov dword [ebp - 0x18], eax
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x401a58
lea ecx, [ebp - 0x230]
push esi
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x401a4f
lea eax, [ebp - 0x230]
push eax
push 0x41dec0
call fcn.00409375
pop ecx
test eax, eax
pop ecx
jne 0x401a4f
push 0x208
lea eax, [ebp - 0x4f8]
push ebx
push eax
call fcn.00408520
lea eax, [ebp - 0x230]
push esi
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.004084de
lea eax, [ebp - 0x4f8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004038c2
add esp, 0x20
test eax, eax
jle 0x401a4f
push dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x14], 0x2f
jne 0x401a58
cmp byte [ebp - 0x13], 0x69
jne 0x401a2d
mov eax, dword [0x41fef8]
mov dword [0x41b074], ebx
push 0x41e0c8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push dword [ebp - 0x18]
push ebx
push 1
call edi
mov edi, eax
cmp edi, ebx
je 0x401a76
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a76
cmp byte [ebp - 0x13], 0x75
jne 0x401a58
mov eax, dword [0x41fef8]
mov dword [0x41b074], 2
push 0x41e0c8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x401a76
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 1
pop ecx
cmp eax, ecx
jne 0x401a58
mov dword [0x41b074], ecx
push 0x208
lea eax, [ebp - 0x700]
push ebx
push eax
call fcn.00408520
push esi
lea eax, [ebp - 0x700]
push 0x41dec0
push eax
call fcn.004084de
lea eax, [ebp - 0x700]
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004038c2
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
jle 0x401bbd
mov ecx, 0xb1
xor eax, eax
lea edi, [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x700]
push dword [ebp - 0x10]
push eax
call fcn.004039ee
add esp, 0xc
test al, al
je 0x401bae
test byte [ebp - 0x2ec], 0x30
je 0x401bae
test byte [ebp - 0x2ea], 1
je 0x401b46
mov eax, dword [ebp - 0x2e8]
and eax, 8
jne 0x401b1f
test byte [ebp - 0x2e8], 0x10
je 0x401b46
mov ecx, dword [0x41b074]
cmp ecx, ebx
je 0x401b32
cmp ecx, 1
jne 0x401b46
cmp eax, ebx
je 0x401b46
push dword [ebp - 0x2ec]
lea eax, [ebp - 0x25c]
push eax
call fcn.004015ed
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2ec]
test ecx, 0x20000
je 0x401b88
mov eax, dword [0x41b074]
cmp eax, ebx
je 0x401b71
cmp eax, 1
je 0x401b71
lea eax, [ebp - 0x25c]
push ecx
push eax
call fcn.00401722
jmp 0x401b86
test ecx, 0x3c00000
je 0x401b88
lea eax, [ebp - 0x25c]
push ecx
push eax
call fcn.004015ed
pop ecx
pop ecx
test byte [ebp - 0x2eb], 0x60
je 0x401bae
cmp dword [0x41b074], 2
jne 0x401bae
push dword [ebp - 0x2ec]
lea eax, [ebp - 0x25c]
push eax
call fcn.00401722
pop ecx
pop ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x401abf
cmp dword [0x41b074], 2
jne 0x401c18
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x3f3]
mov byte [ebp - 0x3f4], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x3f4]
push esi
push eax
push esi
push 0x41dec0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x41fef8]
lea edx, [ebp - 0x3f4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [0x41fef8]
lea edx, [ebp - 0x3f4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [0x41fef8]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [0x41fef8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push 1
pop eax
jmp 0x401a5a