Function at 0x10074d5
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1d94
call fcn.01007f20
mov eax, dword [0x101203c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
xor esi, esi
mov edi, 0x1012f40
push edi
mov dword [ebp - 0x1d94], esi
mov dword [0x1013150], eax
mov word [0x1012f40], si
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x1002108
push edi
call fcn.01007fbf
pop ecx
pop ecx
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1d88]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1d88]
push eax
mov dword [ebp - 0x1d88], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x1d84], 5
jne 0x1007562
cmp dword [ebp - 0x1d80], esi
jne 0x1007562
mov dword [0x101314c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x1d90]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
jne 0x1007586
push 0x3fd
jmp 0x1007a7a
cmp dword [ebp - 0x1d90], 2
jge 0x1007596
xor esi, esi
jmp 0x10076e7
xor edx, edx
cmp dword [ebp - 0x1d90], ebx
mov dword [0x1013148], edx
mov dword [ebp - 0x1d8c], edx
mov word [ebp - 0x2d4], dx
mov word [ebp - 0xcc], dx
mov word [ebp - 0x6dc], dx
mov esi, ebx
jle 0x10076ff
mov eax, dword [edi + esi*4]
mov cx, word [eax]
cmp cx, 0x2d
je 0x10075fa
cmp cx, 0x2f
je 0x10075fa
cmp word [ebp - 0x2d4], dx
jne 0x10076af
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.01007ff2
pop ecx
pop ecx
jmp 0x100769f
movzx eax, word [eax + 2]
push eax
call fcn.010084a4
cmp eax, 0x70
pop ecx
jg 0x1007678
je 0x1007670
cmp eax, 0x3f
je 0x100758f
cmp eax, 0x63
je 0x1007664
cmp eax, 0x67
je 0x1007646
cmp eax, 0x6e
jne 0x10076f5
inc esi
cmp esi, dword [ebp - 0x1d90]
jge 0x10076b9
push dword [edi + esi*4]
mov dword [ebp - 0x1d8c], ebx
lea eax, [ebp - 0x6dc]
jmp 0x10075ed
inc esi
cmp esi, dword [ebp - 0x1d90]
jge 0x10076d5
push dword [edi + esi*4]
mov dword [ebp - 0x1d8c], ebx
lea eax, [ebp - 0xcc]
jmp 0x10075ed
mov dword [ebp - 0x1d8c], 3
jmp 0x100769f
mov dword [0x1013154], ebx
jmp 0x100769f
sub eax, 0x71
je 0x1007699
dec eax
je 0x100768d
sub eax, 3
jne 0x10076f5
mov dword [ebp - 0x1d8c], ebx
jmp 0x100769f
mov dword [ebp - 0x1d8c], 4
jmp 0x100769f
mov dword [0x1013148], ebx
inc esi
cmp esi, dword [ebp - 0x1d90]
jge 0x10076ff
xor edx, edx
jmp 0x10075c7
push 0x3ff
jmp 0x1007779
push dword [edi + esi*4 - 4]
push 0x404
call fcn.01004b65
pop ecx
pop ecx
push dword [edi]
call fcn.01004ded
jmp 0x1007a80
push dword [edi + esi*4 - 4]
push 0x404
call fcn.01004b65
pop ecx
pop ecx
mov esi, ebx
push dword [edi]
call fcn.01004ded
mov eax, esi
jmp 0x1007af8
push dword [edi + esi*4]
push 0x3fe
jmp 0x10076c2
call fcn.01004ec1
test eax, eax
jne 0x1007724
cmp dword [ebp - 0x1d8c], eax
jne 0x100771a
push 0x3f0
jmp 0x1007a7a
push 0x3f5
jmp 0x1007a7a
mov esi, dword [ebp - 0x1d8c]
cmp esi, 3
je 0x1007ad0
cmp esi, 4
je 0x1007ad0
xor eax, eax
cmp esi, eax
jne 0x100774d
cmp word [ebp - 0x2d4], ax
jne 0x100778c
jmp 0x1007774
cmp esi, ebx
jne 0x1007783
cmp word [ebp - 0x2d4], ax
jne 0x100778c
cmp word [ebp - 0xcc], ax
jne 0x10077f4
cmp word [ebp - 0x6dc], ax
jne 0x10078ad
push 0x400
call fcn.01004b65
jmp 0x10076c8
cmp word [ebp - 0x2d4], ax
je 0x10077de
cmp word [ebp - 0x2d2], 0x3a
je 0x10077c9
cmp word [ebp - 0x2d2], 0x5c
je 0x10077c9
push 0x104
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.010083f5
add esp, 0xc
test eax, eax
jne 0x10077de
push 0x401
jmp 0x1007a7a
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.01007ff2
pop ecx
pop ecx
cmp esi, ebx
jne 0x100793e
cmp word [ebp - 0xcc], 0
je 0x10078a3
lea eax, [ebp - 0xcc]
push eax
call fcn.010080f4
cmp eax, 0x26
pop ecx
jne 0x1007899
cmp word [ebp - 0xcc], 0x7b
jne 0x1007899
cmp word [ebp - 0x82], 0x7d
jne 0x1007899
push 0x2d
pop eax
cmp word [ebp - 0xba], ax
jne 0x1007899
cmp word [ebp - 0xb0], ax
jne 0x1007899
cmp word [ebp - 0xa6], ax
jne 0x1007899
cmp word [ebp - 0x9c], ax
jne 0x1007899
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.01007ff2
lea eax, [ebp - 0x2d4]
push 0x10012ac
push eax
call fcn.01007fbf
lea eax, [ebp - 0x4dc]
push 0x1012f40
push eax
call fcn.01007ff2
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.01007fbf
add esp, 0x20
jmp 0x1007984
push 0x406
jmp 0x1007a7a
cmp word [ebp - 0x6dc], 0
je 0x10078e6
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x6dc]
push eax
call fcn.0100526f
test eax, eax
jne 0x1007984
lea eax, [ebp - 0x6dc]
push eax
push 0x405
call fcn.01004b65
pop ecx
jmp 0x1007a7f
lea eax, [ebp - 0x4dc]
push eax
call fcn.01004f08
test eax, eax
jne 0x1007984
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.010053bb
test eax, eax
je 0x1007a80
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.01007ff2
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.01007ff2
add esp, 0x10
test esi, esi
jne 0x100797c
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10079a8
lea eax, [ebp - 0x4dc]
push eax
call fcn.01004f08
test eax, eax
je 0x10079a8
lea eax, [ebp - 0x4dc]
push eax
push 0x3ee
call fcn.01004c0f
pop ecx
pop ecx
jmp 0x1007af2
cmp esi, ebx
jne 0x1007a84
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007a84
lea eax, [ebp - 0x2d4]
push eax
push 0x3ef
jmp 0x1007970
lea eax, [ebp - 0x4dc]
push eax
call fcn.01005125
test eax, eax
je 0x10079cd
cmp dword [0x1013154], 0
jne 0x10079cd
push 0x1f5
call fcn.01004c0f
jmp 0x1007976
lea eax, [ebp - 0xcf4]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.0100505f
test eax, eax
je 0x1007a84
cmp dword [0x1013148], 0
jne 0x1007a5d
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x400
push edi
lea eax, [ebp - 0x1cf4]
push eax
push 0x1f4
push dword [0x1013150]
call esi
test eax, eax
je 0x1007a80
push edi
lea eax, [ebp - 0x14f4]
push eax
push 0x402
push dword [0x1013150]
call esi
test eax, eax
je 0x1007a80
push 0x24
lea eax, [ebp - 0x1cf4]
push eax
lea eax, [ebp - 0x14f4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x1007a52
xor eax, eax
jmp 0x1007af8
cmp eax, 6
mov esi, dword [ebp - 0x1d8c]
jne 0x1007a84
lea eax, [ebp - 0x8e4]
push eax
push ebx
lea eax, [ebp - 0xcf4]
push eax
call fcn.01006c62
test eax, eax
jne 0x1007a84
push 0x403
call fcn.01004b65
pop ecx
mov eax, ebx
jmp 0x1007af8
and word [ebp - 0x8e4], 0
lea eax, [ebp - 0x8e4]
push eax
push esi
lea eax, [ebp - 0x4dc]
push eax
call fcn.01006c62
test eax, eax
jne 0x1007ac9
test esi, esi
jne 0x1007ac3
lea eax, [ebp - 0x8e4]
push eax
push 2
lea eax, [ebp - 0x4dc]
push eax
mov dword [0x1013148], ebx
call fcn.01006c62
mov dword [ebp - 0x1d94], ebx
call fcn.01004e0a
jmp 0x1007af2
call fcn.01004d64
xor eax, eax
cmp esi, 3
sete al
push eax
call fcn.0100677a
test eax, eax
jne 0x1007aed
mov dword [ebp - 0x1d94], ebx
call fcn.01004dcf
mov eax, dword [ebp - 0x1d94]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b7f
leave
ret 0x10