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

Disassembly:
add byte [eax], al
mov ecx, dword [esp + 4]
sub esp, 0x620
lea eax, [esp + 0x210]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x10004560
lea edx, [esp + 0x428]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
test eax, eax
je 0x10004509
mov esi, dword [0x1000d1c8]
lea eax, [esp + 0x428]
push 0x1000f1d8
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call esi
mov edi, dword [0x1000d1c4]
test eax, eax
je 0x100043ae
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
test eax, eax
je 0x10004285
mov edx, dword [esp + 0x638]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x1000d198]
mov ebp, eax
cmp ebp, ebx
je 0x10004560
mov ecx, dword [esp + 0x14]
cmp ecx, 2
jl 0x10004398
mov edi, 1
cmp ecx, edi
jle 0x10004398
mov ebx, dword [esp + 0x63c]
lea esi, [ebp + 4]
mov eax, dword [esi]
cmp word [eax], 0x2f
je 0x10004372
push ebx
push str..dll
push eax
call fcn.10004570
add esp, 0xc
test eax, eax
jne 0x10004390
mov ecx, dword [esp + 0x14]
inc edi
add esi, 4
cmp edi, ecx
jl 0x10004353
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x620
ret
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x620
ret
lea eax, [esp + 0x428]
push 0x1000f1b0
lea ecx, [esp + 0x1c]
push eax
push ecx
call esi
test eax, eax
je 0x10004443
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
test eax, eax
je 0x10004443
mov edx, dword [esp + 0x638]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [0x1000d198]
mov edi, eax
cmp edi, ebx
je 0x10004560
cmp dword [esp + 0x10], 2
jl 0x1000442f
mov esi, dword [edi + 4]
push 0x2c
push esi
call dword [0x1000d1c0]
cmp eax, ebx
je 0x10004410
mov word [eax], bx
mov eax, dword [esp + 0x63c]
push eax
push str..dll
push esi
call fcn.10004570
add esp, 0xc
test eax, eax
je 0x1000442f
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x620
ret
lea ecx, [esp + 0x428]
push str.cmd.exe
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], ebx
call esi
test eax, eax
je 0x10004509
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
test eax, eax
je 0x10004409
mov eax, dword [esp + 0x638]
lea edx, [esp + 0x10]
push edx
push eax
call dword [0x1000d198]
mov ebp, eax
cmp ebp, ebx
je 0x10004560
mov eax, dword [esp + 0x10]
mov edi, 1
cmp eax, edi
jle 0x100044f3
mov ebx, dword [esp + 0x63c]
lea esi, [ebp + 4]
mov eax, dword [esi]
cmp word [eax], 0x2f
je 0x100044c9
push ebx
push 0x1000f194
push eax
call fcn.10004570
add esp, 0xc
test eax, eax
jne 0x100044eb
mov eax, dword [esp + 0x10]
inc edi
add esi, 4
cmp edi, eax
jl 0x100044ae
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x620
ret
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x620
ret
mov eax, dword [esp + 0x63c]
lea edx, [esp + 0x220]
mov esi, 0x104
sub edx, eax
mov cx, word [edx + eax]
cmp cx, bx
je 0x10004546
mov word [eax], cx
add eax, 2
dec esi
jne 0x1000451e
sub eax, 2
pop edi
pop esi
pop ebp
mov word [eax], bx
mov eax, 1
pop ebx
add esp, 0x620
ret
cmp esi, ebx
jne 0x1000454d
sub eax, 2
pop edi
pop esi
mov word [eax], bx
pop ebp
mov eax, 1
pop ebx
add esp, 0x620
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret