Function at 0x40dbf0
Capabilities:
Check if file exists
Copy file
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583337
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x60b044]
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 edi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40deea
push eax
call fcn.0040d330
mov esi, eax
test esi, esi
je 0x40deea
mov ecx, edi
call fcn.0040d400
cmp eax, 1
jne 0x40ddce
cmp dword [0x61554c], 0
jne 0x40dc81
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x2ac], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408c00
mov dword [ebp - 4], 0xffffffff
mov dword [0x61554c], eax
lea eax, [ebp - 0x290]
push eax
call fcn.00409380
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004142f0
push eax
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.0040f5d0
push str..wnpf
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
call fcn.0040f620
add esp, 0x10
lea ecx, [ebp - 0x260]
call fcn.00403350
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.00403350
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x230]
je 0x40dda3
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ddb8
push 0x1869f
push 0x2710
call fcn.0042022f
lea ecx, [esi + 0x48]
mov ebx, eax
push ecx
lea eax, [ebp - 0x278]
push eax
call fcn.00428854
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x40dd44
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x218]
push str._s__d
push eax
call fcn.00402ca0
add esp, 0x10
lea ecx, [ebp - 0x278]
call fcn.00403350
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [ebp - 0x230]
call fcn.00403350
lea ecx, [ebp - 0x290]
jmp 0x40ded3
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x230]
call fcn.00403350
lea ecx, [ebp - 0x290]
jmp 0x40ded3
cmp eax, 2
jne 0x40dedf
cmp dword [0x61554c], 0
jne 0x40de0d
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x2ac], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00408c00
mov dword [ebp - 4], 0xffffffff
mov dword [0x61554c], eax
lea eax, [ebp - 0x260]
push eax
call fcn.00409380
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 8
push eax
mov ecx, esi
call fcn.004142f0
push eax
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x278]
call fcn.0040f5d0
push str..wnpf
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040f620
add esp, 0x10
lea ecx, [ebp - 0x278]
call fcn.00403350
lea ecx, [ebp - 0x2a8]
call fcn.00403350
cmp byte [ebp + 0xc], 0
je 0x40dea7
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea eax, [esi + 0x90]
cmovae ecx, dword [ebp - 0x248]
cmp dword [eax + 0x14], 8
jb 0x40de9b
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40dec2
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x248]
call fcn.00403350
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0xffffffff
call fcn.00403350
lea ecx, [edi + 0x364]
call fcn.00417500
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.0041afe3
mov esp, ebp
pop ebp
ret 8