Function at 0x401b17
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov eax, 0x104c0
lea ebp, [esp - 0x70]
call fcn.00402a70
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
mov esi, dword [sym.imp.USER32.dll_CharNextA]
sete cl
push eax
lea ecx, [ecx + ecx + 0x20]
mov byte [ebp + 0x6f], cl
call esi
xor ebx, ebx
jmp 0x401b53
cmp al, byte [ebp + 0x6f]
je 0x401b5c
push dword [ebp + 0x68]
call esi
mov dword [ebp + 0x68], eax
mov al, byte [eax]
cmp al, bl
jne 0x401b49
mov eax, dword [ebp + 0x68]
cmp byte [eax], 0x22
jne 0x401b67
inc dword [ebp + 0x68]
push 0x11
pop ecx
push dword [ebp + 0x78]
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1044f]
push eax
mov dword [ebp - 0x50], 0x44
mov byte [ebp - 0x10450], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10450]
push 0x401114
push eax
call fcn.00402530
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push 0x401108
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0x60], edi
je 0x401d79
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
push esi
push ebx
push 2
push ebx
push edi
mov dword [ebp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 0x64], eax
je 0x401d79
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x401c13
push dword [ebp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x60]
call esi
jmp 0x401d79
lea ecx, [ebp - 0x10450]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x401c1c
sub ecx, edx
xor edx, edx
cmp esi, ebx
jbe 0x401c50
lea esi, [ebp + ecx - 0x10450]
mov byte [esi + edx], bl
mov cl, byte [edx + edi]
cmp cl, 0xa
je 0x401c50
cmp cl, 0xd
je 0x401c50
cmp cl, 0x30
je 0x401c50
mov byte [esi + edx], cl
inc edx
cmp edx, dword [ebp + 0x5c]
jb 0x401c32
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x60]
call esi
lea eax, [ebp - 0x10450]
push 0x401104
push eax
call fcn.00402530
push dword [ebp + 0x68]
lea eax, [ebp - 0x10450]
push eax
call fcn.00402530
mov eax, dword [section..data]
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401c92
sub eax, edi
mov dword [ebp + 0x5c], eax
je 0x401cc6
lea eax, [ebp - 0x10450]
push 0x401100
push eax
call fcn.00402530
push dword [section..data]
lea eax, [ebp - 0x10450]
push eax
call fcn.00402530
add esp, 0x10
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
je 0x401d02
cmp eax, 0x202b
jne 0x401dd4
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x450]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x1044e]
push 0x22
push eax
call fcn.00402970
inc eax
mov byte [eax], bl
mov dword [ebp + 0x24], eax
pop ecx
lea eax, [ebp - 0x450]
pop ecx
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x10450]
push eax
mov dword [ebp + 0x10], 0x3c
mov dword [ebp + 0x14], 0x40
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], 0x4010f8
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp + 0x48]
cmp eax, ebx
mov dword [ebp + 0x4c], eax
jne 0x401d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401dd4
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x401da2
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0xff
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4c]
push eax
push 1
call edi
cmp eax, 1
je 0x401d89
push dword [ebp + 0x7c]
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp + 0x4c]
call esi
cmp dword [ebp + 0x50], ebx
je 0x401dd2
push dword [ebp + 0x50]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret