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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584599
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x60c044]
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 dword [ebp - 0x4d0], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x40ecca
cmp byte [edi + 0xd9], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
jne 0x40e9b5
lea eax, [edi + 0x48]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00429965
mov dword [ebp - 4], 0
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.0042929b
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [0x61654c], 0
jne 0x40e671
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00409040
mov byte [ebp - 4], 1
mov dword [0x61654c], eax
lea eax, [ebp - 0x498]
push eax
call fcn.004096b0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00414750
push eax
lea edx, [ebp - 0x498]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.0040fa10
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.0040f9c0
add esp, 8
lea esi, [edi + 0x90]
mov ebx, eax
cmp esi, ebx
je 0x40e706
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40e6df
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403830
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40e6f7
mov eax, dword [esi]
jmp 0x40e6f9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00403020
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x40e724
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x470], 0
cmp eax, 8
jb 0x40e75f
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00403830
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x468], ax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
cmp eax, 8
jb 0x40e79e
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
cmp dword [esi + 0x14], 8
jb 0x40e7a8
mov eax, dword [esi]
jmp 0x40e7aa
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e84c
push 0x1869f
push 0x2710
call fcn.00420fd0
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
push eax
cmovae ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x218]
push ecx
push str._s__d
push eax
call fcn.004030d0
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x40e7fa
mov esi, dword [esi]
push 0
push 0
push esi
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
je 0x40e84c
push 0
push 0x601ec0
push 0x601ef0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x498]
call fcn.00403780
lea ecx, [ebp - 0x4b0]
call fcn.00403780
lea ecx, [ebp - 0x438]
call fcn.00403780
jmp 0x40ecca
mov eax, dword [ebp - 0x484]
cmp eax, 8
jb 0x40e86a
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x488], 0
cmp eax, 8
jb 0x40e8a5
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x4b0], ax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x49c], 7
mov dword [ebp - 0x4a0], 0
cmp eax, 8
jb 0x40e8e7
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x61654c], 0
jne 0x40e923
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
lea eax, [ebp - 0x4c8]
push eax
call fcn.00409340
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0xc
push eax
mov ecx, edi
call fcn.00414750
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40e94e
mov ecx, dword [ecx]
cmp dword [ebp - 0x4b4], 8
lea eax, [ebp - 0x4c8]
push str..wnpf
cmovae eax, dword [ebp - 0x4c8]
push ecx
push eax
lea eax, [ebp - 0x420]
push str._s_s_s
push eax
call fcn.004030d0
mov eax, dword [ebp - 0x43c]
add esp, 0x14
cmp eax, 8
jb 0x40e99b
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
cmp dword [edi + 0xa4], 8
lea esi, [edi + 0x90]
jb 0x40eb44
mov eax, dword [esi]
jmp 0x40eb46
cmp dword [0x61654c], 0
jne 0x40e9eb
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
lea eax, [ebp - 0x480]
push eax
call fcn.004096b0
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00414750
push eax
lea edx, [ebp - 0x480]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x468]
call fcn.0040fa10
push str..wnpf
push eax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040fa60
mov eax, dword [ebp - 0x454]
add esp, 0x10
cmp eax, 8
jb 0x40ea59
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x458], 0
cmp eax, 8
jb 0x40ea94
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40eadb
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
lea eax, [edi + 0x90]
cmovae ecx, dword [ebp - 0x438]
cmp dword [eax + 0x14], 8
jb 0x40ead5
mov eax, dword [eax]
push 0
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40eaf9
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x40e8ed
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00403830
jmp 0x40e8ed
mov eax, esi
push 0
lea ecx, [ebp - 0x420]
push ecx
push eax
call ebx
lea eax, [ebp - 0x450]
mov ecx, edi
push eax
call fcn.00414750
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x40eb6c
mov eax, dword [eax]
push eax
call fcn.0040f3a0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40eb94
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
cmp byte [edi + 0xdb], 0
jne 0x40ecac
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x618db8]
cmp eax, dword [ecx + 4]
jle 0x40ebff
push 0x618db8
call fcn.0041bb3e
add esp, 4
cmp dword [0x618db8], 0xffffffff
jne 0x40ebff
xor eax, eax
mov dword [0x618dd0], 7
push 0x586860
mov dword [0x618dcc], 0
mov word [0x618dbc], ax
call fcn.0041b90a
push 0x618db8
call fcn.0041baff
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40ec07
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00403100
lea eax, [ebp - 0x450]
push eax
call fcn.0040ecf0
mov edi, eax
mov esi, 0x618dbc
cmp edi, esi
je 0x40ec66
mov eax, dword [0x618dd0]
cmp eax, 8
jb 0x40ec42
inc eax
mov ecx, esi
push eax
push dword [0x618dbc]
call fcn.00403830
xor eax, eax
mov dword [0x618dd0], 7
push edi
mov ecx, esi
mov dword [0x618dcc], 0
mov word [0x618dbc], ax
call fcn.00403020
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40ec84
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
cmp dword [0x618dd0], 8
mov eax, dword [ebp - 0x4d0]
cmovae esi, dword [0x618dbc]
push esi
push 0
push 0x46a
push dword [eax + 0x3f8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [ebp - 0x4b4]
cmp eax, 8
jb 0x40ecca
inc eax
lea ecx, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c8]
call fcn.00403830
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.0041b443
mov esp, ebp
pop ebp
ret 4