Function at 0x40f1d0
Capabilities:
Accept command line arguments
Copy file
Delete file
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536a72
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x58aae0]
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
mov ebx, ecx
call fcn.00411aa0
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.00512e90
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x420], dx
call fcn.00512e90
add esp, 0x18
mov ecx, ebx
call fcn.0040fbd0
mov ecx, dword [ebx + 0x20]
push edi
push 0xc8
push edi
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea edx, [ebp - 0x430]
push edx
mov dword [ebp - 0x430], edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x430], 1
mov esi, eax
mov dword [ebp - 0x438], esi
je 0x40f30f
mov eax, dword [esi + 4]
push str.update
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x40f5ae
lea edi, [ebp - 0x428]
call fcn.00410840
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
nop
mov ecx, dword [ebp - 0x428]
push ecx
call edi
test eax, eax
je 0x40f2b0
mov edx, dword [ebp - 0x428]
mov ebx, dword [ebx + 0x1bc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x40f2dc
call fcn.00405610
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f5ae
mov eax, dword [ebx + 0x1b8]
push edi
push edi
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push 0x56537c
call fcn.00403fb0
lea ecx, [ebp - 0x424]
push ecx
call fcn.004116a0
push eax
lea edx, [ebx + 0x1c4]
push edx
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 4], edi
call fcn.00404f70
mov eax, dword [eax]
add esp, 0x14
push eax
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f37f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x1b8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x568fc8
push str.update
call esi
mov eax, dword [ebx + 0x1b8]
push eax
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0
push 0x565380
push str.update
call esi
push 0xc
lea esi, [ebp - 0x424]
call fcn.0040d140
mov dword [ebp - 4], 1
mov eax, dword [eax]
push eax
push 0x3f4
mov ecx, ebx
call fcn.0041fb48
mov ecx, eax
call fcn.0041fc88
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xe
lea esi, [ebp - 0x424]
call fcn.0040d140
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push 0x3f7
mov ecx, ebx
call fcn.0041fb48
mov ecx, eax
call fcn.0041fc88
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xf
lea esi, [ebp - 0x424]
call fcn.0040d140
mov dword [ebp - 4], 3
mov eax, dword [eax]
push eax
push 0x3f6
mov ecx, ebx
call fcn.0041fb48
mov ecx, eax
call fcn.0041fc88
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
call fcn.00413609
add esp, 4
test eax, eax
je 0x40f4ee
mov esi, eax
call fcn.00404f20
mov esi, eax
jmp 0x40f4f0
xor esi, esi
mov ecx, dword [ebx + 0x20]
push ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [ebp - 0x42c], esp
push 0x56537c
call fcn.00403fb0
lea edx, [ebp - 0x42c]
push edx
call fcn.004116a0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov dword [ebp - 4], 4
call fcn.004088c0
add esp, 0x14
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 5
call fcn.00404520
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40f586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x1bc
push ebx
lea ecx, [esi + 8]
call fcn.00404520
push 0
push 0
push 0
push 0
push esi
push 0x410a80
call fcn.004185d8
mov esi, dword [ebp - 0x438]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, 1
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.0051209f
mov esp, ebp
pop ebp
ret