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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583479
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
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 dword [ebp - 0x4d0], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e88a
cmp byte [edi + 0xd9], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
jne 0x40e575
lea eax, [edi + 0x48]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00428854
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.0042818a
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [0x61554c], 0
jne 0x40e231
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00408c00
mov byte [ebp - 4], 1
mov dword [0x61554c], eax
lea eax, [ebp - 0x498]
push eax
call fcn.00409270
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004142f0
push eax
lea edx, [ebp - 0x498]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.0040f5d0
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.0040f580
add esp, 8
lea esi, [edi + 0x90]
mov ebx, eax
cmp esi, ebx
je 0x40e2c6
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40e29f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403400
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40e2b7
mov eax, dword [esi]
jmp 0x40e2b9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00402bf0
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x40e2e4
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00403400
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 0x40e31f
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00403400
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 0x40e35e
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
cmp dword [esi + 0x14], 8
jb 0x40e368
mov eax, dword [esi]
jmp 0x40e36a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e40c
push 0x1869f
push 0x2710
call fcn.0042022f
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.00402ca0
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x40e3ba
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 0x40e40c
push 0
push 0x600d00
push 0x600d30
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x498]
call fcn.00403350
lea ecx, [ebp - 0x4b0]
call fcn.00403350
lea ecx, [ebp - 0x438]
call fcn.00403350
jmp 0x40e88a
mov eax, dword [ebp - 0x484]
cmp eax, 8
jb 0x40e42a
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.00403400
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 0x40e465
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.00403400
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 0x40e4a7
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x61554c], 0
jne 0x40e4e3
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.00408c00
mov dword [ebp - 4], 0xffffffff
mov dword [0x61554c], eax
lea eax, [ebp - 0x4c8]
push eax
call fcn.00408f00
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0xc
push eax
mov ecx, edi
call fcn.004142f0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40e50e
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.00402ca0
mov eax, dword [ebp - 0x43c]
add esp, 0x14
cmp eax, 8
jb 0x40e55b
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
cmp dword [edi + 0xa4], 8
lea esi, [edi + 0x90]
jb 0x40e704
mov eax, dword [esi]
jmp 0x40e706
cmp dword [0x61554c], 0
jne 0x40e5ab
push 0x1d4
call fcn.0041aff4
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00408c00
mov dword [ebp - 4], 0xffffffff
mov dword [0x61554c], eax
lea eax, [ebp - 0x480]
push eax
call fcn.00409270
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 8
push eax
mov ecx, edi
call fcn.004142f0
push eax
lea edx, [ebp - 0x480]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x468]
call fcn.0040f5d0
push str..wnpf
push eax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040f620
mov eax, dword [ebp - 0x454]
add esp, 0x10
cmp eax, 8
jb 0x40e619
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00403400
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 0x40e654
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
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 0x40e69b
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
lea eax, [edi + 0x90]
cmovae ecx, dword [ebp - 0x438]
cmp dword [eax + 0x14], 8
jb 0x40e695
mov eax, dword [eax]
push 0
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40e6b9
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
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 0x40e4ad
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00403400
jmp 0x40e4ad
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.004142f0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x40e72c
mov eax, dword [eax]
push eax
call fcn.0040ef60
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40e754
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
cmp byte [edi + 0xdb], 0
jne 0x40e86c
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x617db8]
cmp eax, dword [ecx + 4]
jle 0x40e7bf
push 0x617db8
call fcn.0041b6de
add esp, 4
cmp dword [0x617db8], 0xffffffff
jne 0x40e7bf
xor eax, eax
mov dword [0x617dd0], 7
push 0x585620
mov dword [0x617dcc], 0
mov word [0x617dbc], ax
call fcn.0041b4aa
push 0x617db8
call fcn.0041b69f
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40e7c7
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402cd0
lea eax, [ebp - 0x450]
push eax
call fcn.0040e8b0
mov edi, eax
mov esi, 0x617dbc
cmp edi, esi
je 0x40e826
mov eax, dword [0x617dd0]
cmp eax, 8
jb 0x40e802
inc eax
mov ecx, esi
push eax
push dword [0x617dbc]
call fcn.00403400
xor eax, eax
mov dword [0x617dd0], 7
push edi
mov ecx, esi
mov dword [0x617dcc], 0
mov word [0x617dbc], ax
call fcn.00402bf0
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40e844
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
cmp dword [0x617dd0], 8
mov eax, dword [ebp - 0x4d0]
cmovae esi, dword [0x617dbc]
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 0x40e88a
inc eax
lea ecx, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c8]
call fcn.00403400
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 4