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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598302
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1e8], ebx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x1e8], 2
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jl 0x4884ef
push str.kvip:__
push eax
call fcn.0056685f
add esp, 8
cmp eax, ebx
je 0x4884cf
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4884cf
lea ecx, [ebx + 7]
lea esi, [esp + 0x24]
mov edx, edi
call fcn.0047db50
lea edi, [esp + 0x2c]
mov byte [esp + 0x1e8], 3
call fcn.00480f90
mov byte [esp + 0x1e8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48803c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00488560
mov eax, dword [esp + 0x38]
cmp eax, 2
jl 0x4884cf
cmp eax, ebx
ja 0x488066
push 0x80070057
call fcn.00473d10
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00481090
add eax, 0x10
mov dword [esp + 0x4c], eax
push str.3rdapp
push eax
mov byte [esp + 0x1f0], 4
call fcn.005645c3
add esp, 8
test eax, eax
jne 0x4884a7
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x1e8], 5
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x1e8], 6
cmp dword [esp + 0x38], 1
ja 0x4880e8
push 0x80070057
call fcn.00473d10
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + 4]
lea edx, [esp + 0x58]
mov dword [esp + 0x54], edx
call dword [section..data]
push eax
push esi
lea eax, [esp + 0x5c]
call fcn.00479fa0
lea eax, [esp + 0x24]
mov byte [esp + 0x1e8], 7
mov ecx, dword [esp + 0x54]
push eax
call fcn.00481970
mov byte [esp + 0x1e8], 9
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x48813b
push eax
call fcn.00566eaf
add esp, 4
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.3249375438485564
mov byte [esp + 0x1ec], 0xa
call fcn.00481970
lea edx, [esp + 0x14]
mov byte [esp + 0x1e8], 0xb
mov ecx, dword [esp + 0x24]
push edx
call fcn.00481970
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x24]
mov byte [esp + 0x1f0], 0xc
call fcn.00489370
add esp, 8
lea ebx, [esp + 0x30]
mov byte [esp + 0x1e8], 0xd
call fcn.0047a290
mov byte [esp + 0x1e8], 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4881d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1e8], 0xb
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4881fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1e8], 0xa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x488226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0xd8], ecx
call dword [section..data]
mov edx, dword [esp + 0x30]
push eax
push edx
lea eax, [esp + 0xe0]
call fcn.0047a110
mov byte [esp + 0x1e8], 0xe
mov edx, dword [esp + 0xd8]
lea edi, [esp + 0x44]
call fcn.00481720
mov byte [esp + 0x1e8], 0xa
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0xdc]
cmp eax, ecx
je 0x488287
push eax
call fcn.00566eaf
add esp, 4
mov ebx, dword [esp + 0x44]
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x20], esp
mov eax, ebx
mov esi, esp
mov dword [esp + 0x20], ebx
call fcn.00481090
add eax, 0x10
lea ecx, [esp + 0x24]
mov dword [esi], eax
call fcn.004825a0
add esp, 4
lea edi, [esp + 0x28]
mov byte [esp + 0x1e8], 0xf
call fcn.00480f90
mov byte [esp + 0x1e8], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4882ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x488410
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x488410
cmp dword [esp + 0x18], 0
jle 0x488410
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.00481430
mov byte [esp + 0x1e8], 0x10
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x4883ab
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4883ab
mov eax, dword [esp + 0x14]
push eax
lea esi, [esp + 0xdc]
call fcn.0047a270
mov byte [esp + 0x1e8], 0x11
mov eax, dword [eax]
mov dword [esp + 0x48], 1
call fcn.00488ad0
test eax, eax
je 0x4883a7
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x48839f
push str.uni0nst.exe
push eax
call fcn.0056685f
add esp, 8
test eax, eax
je 0x48839f
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4883a7
mov esi, dword [esp + 0x28]
mov bl, 1
jmp 0x4883ad
mov esi, dword [esp + 0x28]
xor bl, bl
mov dword [esp + 0x1e8], 0x10
test byte [esp + 0x48], 1
je 0x4883da
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0xdc]
cmp eax, ecx
je 0x4883da
push eax
call fcn.00566eaf
add esp, 4
test bl, bl
je 0x4883e6
mov dword [esp + 0x20], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e8], 0xa
call fcn.004818c0
cmp dword [esp + 0x20], 0
je 0x48840c
mov ecx, esi
call fcn.004887a0
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x1e8], 9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1e8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x488460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1e8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x488484
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1e8], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4884a5
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor ebx, ebx
mov byte [esp + 0x1e8], 2
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4884cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x4884ef
mov ebx, dword [esp + 0x38]
call fcn.00482cf0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00566eaf
add esp, 4
xor ebx, ebx
mov byte [esp + 0x1e8], bl
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1e8], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x488541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret