Function at 0x4025d3
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x404034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x21c], eax
xor ecx, ecx
lea eax, [ebp - 0x20c]
push 0x208
push ecx
mov ebx, edx
mov dword [ebp - 0x218], ecx
push eax
mov dword [ebp - 0x214], ebx
mov edi, ecx
mov dword [ebp - 0x224], ecx
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x21c]
xor edx, edx
mov dword [ebx], edx
mov eax, dword [ecx]
add eax, eax
push eax
push edx
push dword [ecx + 4]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x21c]
add esp, 0x18
xor ecx, ecx
mov dword [eax], ecx
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x402891
cmp dword [ebp - 0x218], edi
jle 0x40287d
cmp dword [ebp - 0x218], 1
jne 0x402683
xor ecx, ecx
mov dword [ebx], 0x1000
jmp 0x40287d
push 6
push 0x401418
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov edx, dword [ebp - 0x210]
mov ebx, dword [edx + 4]
test eax, eax
jne 0x4026f0
add ebx, 0xc
xor ecx, ecx
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x4026aa
sub edx, esi
sar edx, 1
je 0x402736
test ebx, ebx
je 0x4026cf
mov ecx, dword [ebp - 0x21c]
push ebx
call fcn.00401b57
mov edi, eax
xor ecx, ecx
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
test edi, edi
js 0x40287d
mov dword [ebx], 0x20
mov edi, ecx
jmp 0x40287d
cmp word [ebx], 0x2f
mov edi, 0x8000ffff
je 0x402757
push ecx
push ebx
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00401a60
mov eax, dword [ebp - 0x210]
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
xor eax, eax
mov esi, eax
push dword [esi*8 + 0x401010]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x402741
inc esi
cmp esi, 4
jb 0x40271e
mov ebx, dword [ebp - 0x214]
jmp 0x402877
mov eax, dword [ebp - 0x210]
mov ebx, dword [esi*8 + 0x401014]
mov eax, dword [eax + 4]
mov dword [ebp - 0x224], eax
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov esi, ecx
push dword [esi + 0x401030]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x402785
inc dword [ebp - 0x220]
add esi, 0xc
cmp esi, 0x9c
jb 0x402761
jmp 0x402736
imul esi, dword [ebp - 0x220], 0xc
mov ebx, dword [ebp - 0x214]
mov eax, dword [esi + 0x401038]
mov dword [ebx], eax
mov ecx, dword [esi + 0x401034]
test ecx, ecx
je 0x402873
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x4027c5
cmp ecx, 1
jne 0x402818
cmp dword [ebp - 0x218], 2
jne 0x402818
mov eax, 0x401408
push ecx
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00401a60
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402833
cmp dword [esi + 0x401034], 1
jne 0x402811
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x402811
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402833
mov edi, 0x80070057
jmp 0x402877
cmp dword [ebp - 0x218], 3
mov eax, dword [ebp - 0x210]
jb 0x40282c
mov eax, dword [eax + 8]
jmp 0x4027c5
mov edi, 0x80070057
jmp 0x40287d
test al, 0x10
je 0x402840
cmp dword [esi + 0x401034], 1
jne 0x402811
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40284b
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x21c]
push eax
call fcn.00402b60
mov edi, eax
test edi, edi
js 0x402877
xor eax, eax
mov edi, eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jns 0x402891
xor edi, edi
mov dword [ebx], 0x2000
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032b0
leave
ret 4