Function at 0x401f30
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, ebp
jne 0x401f5e
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x10
ret
mov cl, byte [eax]
mov ebx, eax
cmp cl, 0x20
jne 0x401f75
mov al, 0x20
test al, al
je 0x401f75
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x401f69
mov al, byte [ebx]
test al, al
jne 0x401f88
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x10
ret
cmp al, 0x22
jne 0x401faa
inc ebx
push 0x22
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebp
jne 0x401fca
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x10
ret
push 0x20
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebp
jne 0x401fca
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
add eax, ebx
mov esi, eax
sub esi, ebx
mov dword [esp + 0x1c], esi
lea edi, [esi + 1]
cmp edi, 1
mov dword [esp + 0x18], edi
jg 0x401feb
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x10
ret
mov al, byte [ebx + 1]
cmp al, 0x3a
jne 0x401ffc
cmp byte [ebx + 2], 0x5c
je 0x4020b1
cmp byte [ebx], 0x5c
je 0x4020b1
cmp al, 0x5c
je 0x4020b1
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov ecx, 0x100
xor eax, eax
mov edi, ebp
push ebp
rep stosd dword es:[edi], eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, 0x3ff
jbe 0x402071
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 0x400
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
test esi, esi
jne 0x402093
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 0x44
test ecx, ecx
je 0x40220a
call fcn.00401070
jmp 0x40220a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
mov dword [esp + 0x18], ecx
mov edi, ecx
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x4020d1
mov dword [esp + 0x18], 0x3a
jmp 0x40220a
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x40213e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4090e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00402400
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40220a
mov eax, dword [esp + 0x10]
push eax
call fcn.00402370
mov edi, dword [esp + 0x18]
mov esi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + ecx + 1]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x2c]
mov edi, eax
add esp, 8
test edi, edi
mov dword [edx], edi
jne 0x4021b2
mov dword [esp + 0x18], 0x3a
jmp 0x40220a
mov ecx, ebx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [edx]
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40221b
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40222c
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebp, ebp
je 0x402239
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret