Function at 0x40c060
Capabilities:
Copy file
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d3f
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5bda40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 4], 1
mov byte [ebp - 0x29], 0
lea ecx, [ebp - 0x30]
call fcn.00410610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0051de71
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
push eax
push 0x59e7b0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004089d0
add esp, 0xc
push 0
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x24]
call fcn.0051deec
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40c24a
lea ecx, [ebp - 0x24]
call fcn.0051dcc3
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.0051de32
test eax, eax
jne 0x40c109
lea ecx, [ebp - 0x24]
call fcn.00409330
test eax, eax
je 0x40c10b
jmp 0x40c0dc
lea ecx, [ebp - 0x38]
call fcn.004316d0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x24]
call fcn.0051e020
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0051e0eb
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0041d680
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
jmp 0x40c15a
push 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00411700
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp + 0xc]
call fcn.00445a90
push eax
lea ecx, [ebp - 0x38]
call fcn.00420000
movzx eax, al
test eax, eax
je 0x40c22d
lea ecx, [ebp - 0x38]
call fcn.004f7ca0
add eax, 0x1c
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x40]
call fcn.004100d0
test eax, eax
jne 0x40c228
lea ecx, [ebp - 0x44]
call fcn.00410610
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.004072e0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x44]
call fcn.004070d0
push eax
push 0x59e7c0
push 0x59e7c4
push 0x59e7cc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00407110
lea ecx, [ebp - 0x38]
call fcn.004f7ca0
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x44]
call fcn.004100d0
test eax, eax
jne 0x40c21c
mov ecx, dword [ebp - 0xcc]
mov byte [ecx + 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.004072c0
jmp 0x40c14c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004072c0
jmp 0x40c0dc
push 0
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x24]
call fcn.0051deec
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40c589
lea ecx, [ebp - 0x24]
call fcn.0051dcc3
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.00409330
test eax, eax
je 0x40c286
jmp 0x40c584
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x24]
call fcn.0051e020
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x24]
call fcn.0051e0eb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
call fcn.004316d0
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0041d680
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
jmp 0x40c2db
push 0
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00411700
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp + 0xc]
call fcn.00445a90
push eax
lea ecx, [ebp - 0x4c]
call fcn.00420000
movzx eax, al
test eax, eax
je 0x40c56c
lea ecx, [ebp - 0x4c]
call fcn.004f7ca0
add eax, 0x1c
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x54]
call fcn.004100d0
test eax, eax
jne 0x40c567
lea ecx, [ebp - 0x58]
call fcn.00410610
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x58]
call fcn.004070d0
push eax
push 0x59e7f0
push 0x59e7f4
push 0x59e7fc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.00407110
lea ecx, [ebp - 0x4c]
call fcn.004f7ca0
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x58]
call fcn.004100d0
test eax, eax
je 0x40c53e
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004f7ca0
mov ecx, eax
call fcn.00402100
push eax
push 0x59e820
push 0x59e830
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
test eax, eax
je 0x40c53c
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004f7ca0
mov ecx, eax
call fcn.00402100
push eax
push 0x59e840
push 0x59e848
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x4c]
call fcn.004f7ca0
add eax, 0x38
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x5c]
call fcn.00406900
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
call fcn.004070f0
movzx ecx, al
test ecx, ecx
jne 0x40c443
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.004068e0
mov dword [ebp - 0xd0], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x40c4ec
push 0x26
lea eax, [ebp - 0xa8]
push eax
call fcn.004fac60
add esp, 8
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 0xb
push 0x59e870
mov edx, dword [ebp - 0xdc]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.00406e40
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00406980
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xac]
call fcn.004072c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
call fcn.004072c0
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x5c]
call fcn.004072e0
push eax
push 0x59e8b0
push 0x59e8c4
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x40c50e
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x5c]
call fcn.004072e0
push eax
push 0x59e8e8
push 0x59e8fc
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x50]
call fcn.004072e0
push eax
push 0x59e920
push 0x59e924
push 0x59e938
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.004072c0
jmp 0x40c542
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp + 0xc]
call fcn.004110a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call fcn.004072c0
jmp 0x40c56c
jmp 0x40c2ca
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x50]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004072c0
jmp 0x40c260
mov dword [ebp - 0x60], 0
jmp 0x40c59b
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
lea ecx, [ebp + 0xc]
call fcn.00410fc0
cmp dword [ebp - 0x60], eax
jae 0x40c85c
push 0x1a
lea ecx, [ebp - 0x70]
push ecx
call fcn.004fac60
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x6c]
call fcn.00410610
mov byte [ebp - 4], 0xe
push str._tempurl.url
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0xb8]
push eax
call fcn.00406e40
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xec]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00406980
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xb8]
call fcn.004072c0
lea ecx, [ebp - 0x68]
call fcn.00410610
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp + 0xc]
call fcn.00410fe0
add eax, 0x1c
mov ecx, eax
call fcn.00402100
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s.url
lea edx, [ebp - 0x68]
push edx
call fcn.004089d0
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp + 0xc]
call fcn.00410fe0
mov ecx, eax
call fcn.00402100
push eax
push 0x59e98c
push 0x59e99c
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00410fe0
mov ecx, eax
call fcn.00402100
push eax
push 0x59e9ac
push 0x59e9b4
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp + 0xc]
call fcn.00410fe0
add eax, 0x38
mov ecx, eax
call fcn.00402100
push eax
lea ecx, [ebp - 0x64]
call fcn.00406900
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x64]
call fcn.004070f0
movzx eax, al
test eax, eax
jne 0x40c70d
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
lea edx, [ebp - 0x64]
push edx
call fcn.004068e0
mov dword [ebp - 0xf0], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jne 0x40c7b6
push 0x26
lea eax, [ebp - 0xc0]
push eax
call fcn.004fac60
add esp, 8
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 0x12
push 0x59e9d8
mov edx, dword [ebp - 0xfc]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.00406e40
add esp, 0xc
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x64]
call fcn.00406980
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xc4]
call fcn.004072c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xc0]
call fcn.004072c0
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x64]
call fcn.004072e0
push eax
push 0x59ea18
push 0x59ea2c
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x40c7d8
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x64]
call fcn.004072e0
push eax
push 0x59ea50
push 0x59ea64
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
push 0x59ea88
push 0x59ea8c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
push 0
lea ecx, [ebp - 0x68]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x40c818
mov byte [ebp - 0x29], 1
lea ecx, [ebp - 0x6c]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x64]
call fcn.004072c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x68]
call fcn.004072c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x6c]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004072c0
jmp 0x40c592
mov al, byte [ebp - 0x29]
mov byte [ebp - 0xc5], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0051de9a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004072c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00410fa0
mov al, byte [ebp - 0xc5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c