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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4b
push 0
push 0
dec ecx
jne 0x4f35dc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4f39ae
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 0x224]
call fcn.004cd90c
mov edx, dword [ebp - 0x224]
mov eax, 0x4f39c8
call fcn.004f3294
pop ecx
push ebp
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 0x14]
call fcn.004f4458
mov edx, dword [ebp - 0x228]
mov eax, 0x4f39f0
call fcn.004f3294
pop ecx
xor eax, eax
push ebp
push 0x4f367d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004cd94c
call fcn.004f3394
test al, al
je 0x4f3664
lea eax, [ebp - 0x10]
mov edx, 0x4f3a1c
call fcn.00407bf4
push ebp
mov edx, dword [ebp - 0x10]
mov eax, 0x4f3a3c
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3687
xor eax, eax
push ebp
push 0x4f36bc
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 0x22c]
call fcn.004ce4c0
mov edx, dword [ebp - 0x22c]
mov eax, 0x4f3a5c
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f36c6
xor eax, eax
push ebp
push 0x4f36fe
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x14]
call fcn.004f3f7c
mov edx, dword [ebp - 0x230]
mov eax, 0x4f3a8c
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3708
xor eax, eax
push ebp
push 0x4f379c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004f3fcc
cmp dword [ebp - 0x10], 0
je 0x4f3792
mov eax, dword [ebp - 0x14]
call fcn.004f408c
mov ebx, eax
cmp ebx, 1
jne 0x4f3747
push ebp
mov edx, dword [ebp - 0x10]
mov eax, 0x4f3ab8
call fcn.004f3294
pop ecx
jmp 0x4f3792
push ebp
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x240], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 0x11
lea edx, [ebp - 0x244]
mov ecx, 1
mov eax, 0x4f3ad8
call fcn.00416588
mov edx, dword [ebp - 0x234]
mov eax, 0x4f3af4
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f37a6
xor eax, eax
push ebp
push 0x4f37e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x543544]
cmp byte [eax], 0
je 0x4f37de
push ebp
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x14]
call fcn.004f41b8
mov edx, dword [ebp - 0x248]
mov eax, 0x4f3b18
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f37f2
xor eax, eax
push ebp
push 0x4f391f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f3b38
push 0x4f3b60
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040d220
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x21e]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0041d8f8
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4f3852
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x4f3852
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00406c2c
mov ebx, eax
movzx edx, word [ebx]
mov eax, dword [0x4f1250]
call fcn.004f4778
mov ebx, eax
movzx edx, word [ebp - 0x21e]
mov eax, dword [0x4f1250]
call fcn.004f4778
cmp bx, ax
je 0x4f38ef
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4f3896
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x4f3896
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00406c2c
mov ebx, eax
push ebp
push ebp
lea edx, [ebp - 0x250]
movzx eax, word [ebp - 0x21e]
call fcn.004f3458
pop ecx
push dword [ebp - 0x250]
push 0x4f3b88
push ebp
lea edx, [ebp - 0x254]
movzx eax, word [ebx]
call fcn.004f3458
pop ecx
push dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.00407d98
mov edx, dword [ebp - 0x24c]
mov eax, 0x4f3b98
call fcn.004f3294
pop ecx
jmp 0x4f3915
push ebp
push ebp
lea edx, [ebp - 0x258]
movzx eax, word [ebp - 0x21e]
call fcn.004f3458
pop ecx
mov edx, dword [ebp - 0x258]
mov eax, 0x4f3b98
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3929
xor eax, eax
push ebp
push 0x4f396e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00404618
test eax, eax
jle 0x4f3964
push ebp
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 0x25c]
call fcn.0040798c
mov edx, dword [ebp - 0x25c]
mov eax, 0x4f3bc4
call fcn.004f3294
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f39b5
lea eax, [ebp - 0x25c]
mov edx, 6
call fcn.004077c8
lea eax, [ebp - 0x234]
mov edx, 5
call fcn.004077c8
lea eax, [ebp - 0x10]
call fcn.004077c0
ret