Function at 0x4025e0
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41010b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x41901c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x290], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x298], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402630
sub edx, esi
lea esi, [edi + 0x24]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004013a0
cmp dword [esi + 0x14], 8
jb 0x402653
mov esi, dword [esi]
lea eax, [ebp - 0x29c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x294], eax
test eax, eax
je 0x402b42
push dword [ebp - 0x29c]
lea ecx, [edi + 0x6c]
call fcn.00403bd0
xor esi, esi
cmp dword [ebp - 0x29c], esi
jle 0x4026e4
xor edi, edi
nop dword [eax]
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp - 0x290]
mov edx, dword [edx + esi*4]
mov ecx, dword [eax + 0x6c]
add ecx, edi
lea eax, [edx + 2]
mov dword [ebp - 0x2a0], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4026b0
sub edx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x294]
sar edx, 1
push edx
push dword [eax + esi*4]
call fcn.004013a0
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0x29c]
jl 0x402690
mov edi, dword [ebp - 0x290]
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x22c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402710
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
lea esi, [edi + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.004013a0
push 0x105
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402750
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x402785
lea eax, [ebp + ecx*2 - 0x22e]
nop word [eax + eax]
movzx edx, word [eax]
cmp edx, 0x2f
je 0x402785
cmp edx, 0x5c
je 0x402785
dec ecx
sub eax, 2
test ecx, ecx
jg 0x402770
add ecx, ecx
cmp ecx, 0x21c
jae 0x402c89
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov word [ebp + ecx - 0x22c], ax
lea eax, [ebp - 0x22c]
push eax
call edi
lea eax, [ebp - 0x22c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027c7
mov eax, dword [ebp - 0x290]
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [eax + 0x54]
call fcn.004013a0
cmp dword [esi + 0x14], 8
jb 0x4027f4
mov esi, dword [esi]
push esi
call edi
mov edi, dword [ebp - 0x298]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402802
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x40285b
cmp word [edi + 2], 0x3a
jne 0x40285b
movzx eax, word [edi + 4]
cmp eax, 0x2f
je 0x40282b
cmp eax, 0x5c
jne 0x40285b
mov ecx, dword [ebp - 0x290]
mov edx, edi
lea ecx, [ecx + 0x3c]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402840
sub edx, esi
sar edx, 1
push edx
push edi
call fcn.004013a0
jmp 0x4029d8
mov ecx, dword [ebp - 0x290]
push 0x412a10
lea eax, [ecx + 0x54]
push eax
lea eax, [ebp - 0x28c]
push eax
lea esi, [ecx + 0x3c]
call fcn.00401870
add esp, 0xc
mov edx, eax
mov ecx, edi
mov dword [ebp - 4], 0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402890
mov eax, dword [ebp - 0x298]
sub ecx, edi
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00403830
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x274]
movq qword [ebp - 0x2a4], xmm1
movq qword [ebp - 0x264], xmm1
movups xmmword [ebp - 0x2b4], xmm0
movups xmmword [ebp - 0x274], xmm0
cmp esi, eax
je 0x402951
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x402939
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x402920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8e
mov eax, edx
push ecx
push eax
call fcn.00403d79
movups xmm0, xmmword [ebp - 0x2b4]
add esp, 8
movq xmm1, qword [ebp - 0x2a4]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm1
jmp 0x402991
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x402991
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402987
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8e
push edx
push ecx
call fcn.00403d79
add esp, 8
mov edx, dword [ebp - 0x278]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4029d8
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4029ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8e
push edx
push ecx
call fcn.00403d79
add esp, 8
mov esi, dword [ebp - 0x290]
add esi, 0x3c
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4029eb
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x22c]
push ecx
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a10
sub ecx, edx
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004013a0
cmp dword [esi + 0x14], 8
mov ecx, esi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x298], esi
jb 0x402a6b
mov ecx, dword [esi]
mov dword [ebp - 0x298], ecx
cmp eax, 8
jae 0x402a8b
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x230], 7
mov edi, 7
movups xmmword [ebp - 0x244], xmm0
jmp 0x402ad8
mov edi, eax
lea ecx, [ebp - 0x244]
mov eax, 0x7ffffffe
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.00401340
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x244], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x298]
push eax
call fcn.00404b10
mov eax, dword [ebp - 0x294]
add esp, 0xc
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x234], eax
cmp edi, 8
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call edi
test eax, eax
jne 0x402b61
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x402b42
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.00403d79
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403d87
mov esp, ebp
pop ebp
ret 4
push 0x412a14
lea eax, [ebp - 0x25c]
push esi
push eax
call fcn.00401870
add esp, 0xc
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae eax, dword [ebp - 0x25c]
push eax
call edi
mov edx, dword [ebp - 0x248]
test eax, eax
jne 0x402bf3
cmp edx, 8
jb 0x402bd1
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.00403d79
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
jmp 0x402b02
cmp edx, 8
jb 0x402c29
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.00403d79
add esp, 8
mov edx, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
cmp edx, 8
jb 0x402c82
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.00403d79
add esp, 8
mov al, 1
jmp 0x402b44
call fcn.00403eda
call fcn.00406fcf
call fcn.00406fcf
int3