Function at 0x403532
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x2d4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x40a230
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
cmp ax, 6
mov dword [0x47af2c], eax
je 0x403582
push ebx
call fcn.00406859
cmp eax, ebx
je 0x403582
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.004067e9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x403587
push 0xa
call fcn.00406859
push 8
call fcn.00406859
push 6
mov dword [0x47af24], eax
call fcn.00406859
cmp eax, ebx
je 0x4035ca
push 0x1e
call eax
test eax, eax
je 0x4035ca
or byte [0x47af2f], 0x40
push ebp
call dword [0x408040]
push ebx
call dword [0x40829c]
mov dword [0x47aff8], eax
push ebx
lea eax, [esp + 0x34]
push 0x2b4
push eax
push ebx
push 0x440248
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x40a384
push 0x472f20
call fcn.0040647f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, 0x4cc000
push eax
push ebp
call fcn.0040647f
cmp word [0x4cc000], 0x22
mov dword [0x47af20], 0x400000
mov eax, ebp
jne 0x403633
push 0x22
mov eax, 0x4cc002
pop edi
push edi
push eax
call fcn.00405d81
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x18], ecx
mov ax, word [ecx]
cmp ax, bx
je 0x403764
push 0x20
pop ebx
cmp ax, bx
jne 0x403662
inc ecx
inc ecx
cmp word [ecx], bx
je 0x40365b
cmp word [ecx], 0x22
jne 0x40366d
inc ecx
push 0x22
inc ecx
pop ebx
cmp word [ecx], 0x2f
jne 0x403730
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x403698
mov ax, word [ecx + 2]
cmp ax, 0x20
je 0x40368e
test ax, ax
jne 0x403698
mov dword [0x47afe0], 1
movzx eax, word [0x40a37e]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a37c]
cdq
movzx edx, word [0x40a378]
or edi, eax
movzx eax, word [0x40a37a]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx]
or edi, edx
cmp eax, esi
jne 0x4036ee
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x4036ee
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x4036e9
test ax, ax
jne 0x4036ee
or dword [esp + 0x1c], 4
movzx eax, word [0x40a372]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a370]
cdq
movzx edx, word [0x40a36c]
or edi, eax
movzx eax, word [0x40a36e]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx - 4]
or edi, edx
cmp eax, esi
jne 0x403730
mov eax, dword [ecx]
cmp eax, edi
je 0x40374f
push ebx
push ecx
call fcn.00405d81
mov ecx, eax
cmp word [ecx], 0x22
jne 0x403741
inc ecx
inc ecx
mov ax, word [ecx]
test ax, ax
jne 0x403653
jmp 0x403762
and word [ecx - 4], 0
add ecx, 4
push ecx
push 0x4d0000
call fcn.0040647f
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x4e0000
push edi
push 0x2000
call esi
call fcn.00403501
test eax, eax
jne 0x4037d6
push 0x1ffb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40a360
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.00403501
test eax, eax
jne 0x4037d6
push edi
push 0x1ffc
call esi
push 0x40a358
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push 0x40a34c
call esi
push edi
push 0x40a344
call esi
call fcn.00403501
test eax, eax
je 0x4038a1
push 0x4dc000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x1c]
call fcn.00402f9d
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4038a1
cmp dword [0x47af40], ebx
je 0x403891
push ebx
push ebp
call fcn.00405d81
mov esi, eax
cmp esi, ebp
jb 0x40385b
movzx eax, word [0x40a33e]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
movzx eax, word [0x40a33c]
movzx ecx, word [0x40a338]
cdq
or ebx, eax
movzx eax, word [0x40a33a]
shl eax, 0x10
or eax, ecx
xor ecx, ecx
cdq
or ecx, eax
mov eax, ebx
or eax, edx
mov edx, dword [esi]
cmp edx, ecx
jne 0x403853
mov edx, dword [esi + 4]
cmp edx, eax
je 0x403859
dec esi
dec esi
cmp esi, ebp
jae 0x403846
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0x10], 0x40a2b8
jb 0x4038cd
mov word [esi], bx
add esi, 8
push esi
call fcn.00405e5c
test eax, eax
je 0x4038a1
push esi
push 0x4d0000
call fcn.0040647f
push esi
push 0x4d4000
call fcn.0040647f
mov dword [esp + 0x10], ebx
or dword [0x47afec], 0xffffffff
call fcn.00403b65
mov dword [esp + 0x14], eax
call fcn.00403a73
call dword [0x408298]
cmp dword [esp + 0x10], ebx
pop ebp
je 0x4039d7
push 0x200010
push dword [esp + 0x10]
call fcn.00405ae5
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405a50
push 0x40a32c
push edi
mov esi, eax
call sub.KERNEL32.dll_lstrcatW
cmp esi, ebx
je 0x4038ee
push 0x40a328
push edi
call sub.KERNEL32.dll_lstrcatW
push 0x40a31c
push edi
call sub.KERNEL32.dll_lstrcatW
mov ebp, 0x4d8000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4038a1
cmp esi, ebx
push edi
je 0x403916
call fcn.004059b6
jmp 0x40391b
call fcn.00405a33
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x4d0000], bx
jne 0x403936
push ebp
push 0x4d0000
call fcn.0040647f
push dword [esp + 0x18]
push section..ndata
call fcn.0040647f
movzx eax, word [0x40a316]
movzx ecx, word [0x40a314]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x480000], eax
pop ebp
mov esi, 0x43c248
mov eax, dword [0x47af34]
push dword [eax + 0x120]
push esi
call fcn.004064a1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebx
je 0x4039c1
push 1
push esi
push 0x4e8000
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4039c1
push ebx
push esi
call fcn.00406245
mov eax, dword [0x47af34]
push dword [eax + 0x124]
push esi
call fcn.004064a1
push esi
call fcn.00405a68
cmp eax, ebx
je 0x4039c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
inc word [0x480000]
dec ebp
jne 0x403964
push ebx
push edi
call fcn.00406245
jmp 0x4038a1
cmp dword [0x47afd4], ebx
je 0x403a5b
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a2b
lea eax, [esp + 0x20]
push eax
push 0x40a2ec
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.00406859
cmp eax, ebx
mov esi, 0x80040002
je 0x403a47
push esi
push 0x25
push ebx
push ebx
push ebx
call eax
test eax, eax
je 0x403a54
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403a5b
push 9
call fcn.0040140b
mov eax, dword [0x47afec]
cmp eax, 0xffffffff
je 0x403a69
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]