Function at 0x402563
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 0x402821
cmp dword [ebp - 0x218], edi
jle 0x40280d
cmp dword [ebp - 0x218], 1
jne 0x402613
xor ecx, ecx
mov dword [ebx], 0x1000
jmp 0x40280d
push 6
push 0x401408
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 0x402680
add ebx, 0xc
xor ecx, ecx
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x40263a
sub edx, esi
sar edx, 1
je 0x4026c6
test ebx, ebx
je 0x40265f
mov ecx, dword [ebp - 0x21c]
push ebx
call fcn.00401b1c
mov edi, eax
xor ecx, ecx
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
test edi, edi
js 0x40280d
mov dword [ebx], 0x20
mov edi, ecx
jmp 0x40280d
cmp word [ebx], 0x2f
mov edi, 0x8000ffff
je 0x4026e7
push ecx
push ebx
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00401a20
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 0x4026d1
inc esi
cmp esi, 4
jb 0x4026ae
mov ebx, dword [ebp - 0x214]
jmp 0x402807
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 0x402715
inc dword [ebp - 0x220]
add esi, 0xc
cmp esi, 0x9c
jb 0x4026f1
jmp 0x4026c6
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 0x402803
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x402755
cmp ecx, 1
jne 0x4027a8
cmp dword [ebp - 0x218], 2
jne 0x4027a8
mov eax, 0x4013f8
push ecx
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00401a20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4027c3
cmp dword [esi + 0x401034], 1
jne 0x4027a1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4027a1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4027c3
mov edi, 0x80070057
jmp 0x402807
cmp dword [ebp - 0x218], 3
mov eax, dword [ebp - 0x210]
jb 0x4027bc
mov eax, dword [eax + 8]
jmp 0x402755
mov edi, 0x80070057
jmp 0x40280d
test al, 0x10
je 0x4027d0
cmp dword [esi + 0x401034], 1
jne 0x4027a1
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4027db
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x21c]
push eax
call fcn.00402afa
mov edi, eax
test edi, edi
js 0x402807
xor eax, eax
mov edi, eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jns 0x402821
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.00403260
mov esp, ebp
pop ebp
ret 4