Function at 0x402f50
Capabilities:
Delete file
Download url
Get common file path
Move file
Receive data

Disassembly:
sub esp, 0x424
push ebx
mov ebx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
mov ebp, dword [esp + 0x430]
push esi
push edi
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], ecx
test eax, eax
mov dword [esp + 0x10], ebx
je 0x402f7a
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x402f86
mov ebx, eax
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push eax
call esi
mov edx, eax
add esp, 8
test edx, edx
je 0x40311f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x22c]
sub edx, eax
inc edx
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x22c]
push edx
push 0
push 0x40c334
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40311f
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
je 0x40311f
lea edi, [eax + 1]
mov al, byte [eax + 1]
test al, al
je 0x40311f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x330]
mov eax, ecx
mov esi, edi
mov edi, edx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40303d
xor ebp, ebp
jmp 0x403045
mov ebp, dword [ebp + 0x18]
sub ebp, eax
sar ebp, 4
cmp ebp, ebx
mov dword [esp + 0x14], ebx
jle 0x4030ee
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x330]
xor eax, eax
mov dword [esp + 0x120], 0x409bc8
mov edx, dword [ecx + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x124], edx
lea edx, [esp + 0x128]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x438]
add eax, dword [ecx + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4030ad
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x120]
lea ecx, [esp + 0x1c]
push edx
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jge 0x4030ee
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
lea ecx, [ebp - 1]
cmp eax, ecx
je 0x40311f
inc eax
add ebx, 0x10
cmp eax, ebp
mov dword [esp + 0x14], eax
jl 0x403051
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea edx, [esp + 0x20]
push edi
push edx
call esi
test eax, eax
jne 0x40312e
push 5
lea eax, [esp + 0x20]
push edi
push eax
call esi
test eax, eax
jne 0x40312e
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x424
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x424
ret 4