Function at 0x40ccb0
Capabilities:
Accept command line arguments
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4965a2
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x50c]
call fcn.00406ed0
mov dword [ebp - 4], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402db0
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50c]
call fcn.00408240
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x40cdb1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cda7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3cd
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov esi, dword [ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
test esi, esi
je 0x40ce80
mov edi, dword [ebp - 0x450]
cmp esi, edi
je 0x40ce39
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40ce19
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40ce0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3cd
mov eax, edx
push ecx
push eax
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x40cde0
mov esi, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x44c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40ce76
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3cd
push ecx
push esi
call fcn.0046d9fd
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0x460], 0
push 0x49fa3c
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
call fcn.00402db0
push 9
xor eax, eax
mov dword [ebp - 0x28], 0
push str.Temporary
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402db0
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50c]
call fcn.00408cc0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40cf3f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3d2
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov edx, dword [ebp - 0x44c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x40cf96
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3d2
push edx
push ecx
call fcn.0046d9fd
add esp, 8
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x50c]
call fcn.00407220
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x50c]
call fcn.00407770
push 0x208
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0046f980
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push 0xf
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0047a431
lea ecx, [ebp - 0x38]
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d050
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00402db0
push 0x10
lea eax, [ebp - 0x38]
push eax
cdq
push edx
push eax
call fcn.0047a3b1
lea ecx, [ebp - 0x38]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d086
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00402c30
push 4
push str..exe
lea ecx, [ebp - 0x460]
call fcn.00402c30
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x478], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
lea edx, [ecx + 2]
mov word [ebp - 0x478], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d110
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.00402db0
mov edx, dword [ebp - 0x44c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x40d176
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d16c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3d7
push edx
push ecx
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
cmp dword [ebp - 0x464], 8
lea ecx, [ebp - 0x478]
push 0
cmovae ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x4a8]
cmp dword [ebp - 0x494], 8
push ecx
cmovae eax, dword [ebp - 0x4a8]
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40d28f
push 0x208
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0046f980
add esp, 0xc
call fcn.0041d260
lea edx, [ebp - 0x448]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x40d1f4
cmp dword [ebp - 0x464], 8
lea eax, [ebp - 0x478]
cmovae eax, dword [ebp - 0x478]
push eax
call fcn.00463c90
add esp, 4
test eax, eax
je 0x40d28f
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x524], 1
movzx edx, word [ebp - 0x520]
jne 0x40d247
mov edx, 0xa
cmp dword [ebp - 0x47c], 8
lea ecx, [ebp - 0x490]
push edx
cmovae ecx, dword [ebp - 0x490]
lea edx, [ebp - 0x448]
cmp dword [ebp - 0x464], 8
lea eax, [ebp - 0x478]
push edx
cmovae eax, dword [ebp - 0x478]
push ecx
push eax
push 0
push 0
call fcn.004655f0
xor ebx, ebx
add esp, 0x18
cmp eax, 0x20
setg bl
jmp 0x40d291
xor ebx, ebx
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x40d2d1
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d2c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3dc
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov edx, dword [ebp - 0x47c]
xor eax, eax
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
cmp edx, 8
jb 0x40d32e
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3dc
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov edx, dword [ebp - 0x494]
xor eax, eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
cmp edx, 8
jb 0x40d387
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d37d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d3dc
push edx
push ecx
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [ebp - 0x498], 0
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
call fcn.00407000
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
call fcn.00478f8e
call fcn.00478f8e
call fcn.00478f8e
call fcn.00478f8e
int3