Function at 0x47a5e0
Capabilities:
Check http status code
Delete file
Get common file path
Get http content length
Move file
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x288
push 0
push 0
dec ecx
jne 0x47a5e9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405c50
mov eax, dword [ebp + 0xc]
call fcn.00405c50
xor eax, eax
push ebp
push 0x47af44
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00405868
push 3
push 0
mov ecx, dword [ebp - 0x18]
mov edx, 0x393
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00479e48
cmp byte [ebx + 0x69], 2
jne 0x47a779
lea edx, [ebp - 0x13d0]
mov eax, dword [ebp + 0xc]
call fcn.0040b760
cmp dword [ebp - 0x13d0], 0
jne 0x47a67c
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00405ae8
jmp 0x47a687
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00405868
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405c60
mov edx, eax
lea eax, [ebp - 0x13d4]
call fcn.004059c8
mov eax, dword [ebp - 0x13d4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405c60
mov edx, eax
lea eax, [ebp - 0x13d8]
call fcn.004059c8
mov edx, dword [ebp - 0x13d8]
mov eax, ebx
pop ecx
call fcn.0047a1b4
test al, al
je 0x47a770
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x47a70a
lea edx, [ebp - 0x13dc]
mov eax, dword [ebp - 0x14]
call fcn.00409f84
mov edx, dword [ebp - 0x13dc]
mov eax, 0x47af60
call fcn.00405dac
test eax, eax
jne 0x47a70a
mov eax, dword [ebp - 0x14]
call fcn.0047997c
cmp byte [ebp + 8], 0
je 0x47a767
lea edx, [ebp - 0x13e0]
mov eax, dword [ebp - 0x14]
call fcn.00409f84
mov edx, dword [ebp - 0x13e0]
mov eax, 0x47af60
call fcn.00405dac
test eax, eax
je 0x47a767
push 3
push 0
mov ecx, dword [ebp - 0x14]
mov edx, 0x3c5
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00474db4
cmp byte [ebx + 0x191], 0
jne 0x47a767
mov eax, dword [ebp - 0x14]
call fcn.00405c60
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 0x21], 1
jmp 0x47af01
mov byte [ebp - 0x21], 0
jmp 0x47af01
mov eax, dword [ebx + 0x64]
push eax
lea eax, [ebp - 0x13e4]
push eax
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0047a08c
mov edx, dword [ebp - 0x13e4]
lea eax, [ebp - 4]
call fcn.00405868
cmp byte [ebx + 0x69], 0
jne 0x47a857
cmp dword [ebx + 0x40], 0
je 0x47a808
cmp byte [ebx + 0x120], 0
jne 0x47a808
lea ecx, [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.00479d14
push 3
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, 0x3ce
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.00405c60
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
jne 0x47a801
push 3
push 8
mov ecx, dword [ebp - 0x1c]
mov edx, 0x3cf
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
mov byte [ebx + 0x120], 1
push 0
push 0x84000000
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405c60
mov esi, eax
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_FtpFindFirstFileA
test eax, eax
je 0x47a834
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x13ac]
mov dword [ebp - 0x38], eax
push 0
push 2
push 0x80000000
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_FtpOpenFileA
mov esi, eax
jmp 0x47aaad
mov edi, 0x84000100
cmp byte [ebx + 0x154], 0
je 0x47a86b
or edi, 0x400000
cmp byte [ebx + 0x155], 0
je 0x47a87a
or edi, 0x20000000
cmp byte [ebx + 0x1a4], 0
jne 0x47a918
cmp dword [ebx + 0x70], 0
je 0x47a897
cmp dword [ebx + 0x4c], 0
jne 0x47a918
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x70]
call fcn.00405868
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x4c]
call fcn.00405868
lea ecx, [ebp - 0x13ec]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00479f80
mov ecx, dword [ebp - 0x13ec]
lea eax, [ebp - 0x13e8]
mov edx, 0x47af70
call fcn.00405ae8
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00472d80
test al, al
jne 0x47a902
push 0
push 0
mov ecx, 0x47af84
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x47af01
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0xc]
call fcn.00405824
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x10]
call fcn.00405824
cmp dword [ebx + 0x70], 0
jne 0x47a924
cmp dword [ebx + 0x4c], 0
je 0x47a96f
push 0x47afa8
push dword [ebx + 0x70]
push 0x47afc8
push dword [ebx + 0x4c]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.00405b64
mov eax, dword [ebp - 0x13f4]
lea edx, [ebp - 0x13f0]
call fcn.00474588
push dword [ebp - 0x13f0]
push 0x47afd4
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405b64
jmp 0x47a977
lea eax, [ebp - 8]
call fcn.004057d0
mov esi, dword [ebp - 8]
test esi, esi
je 0x47a983
sub esi, 4
mov esi, dword [esi]
push 0
push edi
push esi
mov eax, dword [ebp - 8]
call fcn.00405c60
push eax
mov eax, dword [ebp - 4]
call fcn.00405c60
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
mov dword [ebp - 0x30], 4
xor eax, eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x47aaad
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x38], 0x191
jne 0x47aa75
cmp byte [ebx + 0x1a4], 1
jne 0x47aa75
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x70]
call fcn.00405868
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x4c]
call fcn.00405868
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00479f80
mov ecx, dword [ebp - 0x13fc]
lea eax, [ebp - 0x13f8]
mov edx, 0x47af70
call fcn.00405ae8
mov eax, dword [ebp - 0x13f8]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00472d80
test al, al
je 0x47aa5b
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0xc]
call fcn.00405824
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x10]
call fcn.00405824
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x47a918
push 0
push 0
mov ecx, 0x47af84
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x47af01
cmp dword [ebp - 0x38], 0x12c
jb 0x47aaad
push 6
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1400]
call fcn.0040ad68
mov ecx, dword [ebp - 0x1400]
mov edx, 0x394
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x47af01
test esi, esi
jne 0x47aad0
mov eax, ebx
call fcn.00479368
push 2
push 1
mov ecx, dword [ebp - 0x18]
mov edx, 0x395
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x47af01
lea ecx, [ebp - 0x1404]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00479e48
mov ecx, dword [ebp - 0x1404]
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00405ae8
cmp byte [ebx + 0x141], 0
je 0x47ab26
lea eax, [ebp - 0x113f]
push eax
push 0
push 0x47afdc
lea eax, [ebp - 0x1408]
call fcn.00478764
mov eax, dword [ebp - 0x1408]
call fcn.00405c60
push eax
call sub.kernel32.dll_GetTempFileNameA
jmp 0x47ab45
lea eax, [ebp - 0x113f]
push eax
push 0
push 0x47afdc
mov eax, dword [ebx + 0x150]
call fcn.00405c60
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x140c]
lea edx, [ebp - 0x113f]
mov ecx, 0x105
call fcn.00405a40
mov edx, dword [ebp - 0x140c]
lea eax, [ebp - 0x128c]
call fcn.004038d8
mov edx, 1
lea eax, [ebp - 0x128c]
call fcn.00403fa8
call fcn.00403148
mov dword [ebp - 0x28], 0x1000
cmp byte [ebx + 0x69], 1
jne 0x47abb6
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 4
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x20000005
push esi
call sub.wininet.dll_HttpQueryInfoA
xor eax, eax
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x181]
mov byte [ebp - 0x39], al
mov byte [ebp - 0x3a], 0
jmp 0x47ac6e
mov eax, dword [0x4dff2c]
mov eax, dword [eax]
call fcn.0044745c
lea eax, [ebp - 0x28]
push eax
push 0x1000
lea eax, [ebp - 0x103a]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x47abfd
mov byte [ebp - 0x3a], 1
jmp 0x47ac7e
cmp dword [ebp - 0x28], 0
jbe 0x47ac27
cmp dword [ebp - 0x28], 0x1000
ja 0x47ac27
push 0
lea edx, [ebp - 0x103a]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x128c]
call fcn.00403a38
call fcn.00403148
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x2c], eax
cmp word [ebx + 0x8a], 0
je 0x47ac50
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
movzx eax, byte [ebx + 0x181]
mov byte [ebp - 0x39], al
lea edx, [ebp - 0x39]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp dword [ebp - 0x28], 0
jbe 0x47ac6e
mov byte [ebp - 0x21], 1
cmp dword [ebp - 0x28], 0
jbe 0x47ac7e
cmp byte [ebp - 0x39], 0
je 0x47abce
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x128c]
call fcn.00403a58
call fcn.00403148
movzx eax, byte [ebp - 0x39]
mov byte [ebx + 0x181], al
movzx eax, byte [ebp - 0x39]
or al, byte [ebp - 0x3a]
je 0x47ad1a
lea edx, [ebp - 0x1410]
lea eax, [ebp - 0x113f]
call fcn.0040bc38
mov ebx, dword [ebp - 0x1410]
mov dword [ebp - 0x1414], ebx
mov eax, dword [ebp - 0x1414]
call fcn.00405c60
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47ad11
lea edx, [ebp - 0x141c]
lea eax, [ebp - 0x113f]
call fcn.0040bc38
mov ecx, dword [ebp - 0x141c]
lea eax, [ebp - 0x1418]
mov edx, 0x47afec
call fcn.00405ae8
mov eax, dword [ebp - 0x1418]
call fcn.00478600
mov byte [ebp - 0x21], 0
jmp 0x47af01
mov eax, dword [ebp - 0x14]
call fcn.0040b414
test al, al
je 0x47ad8d
mov eax, dword [ebp - 0x14]
call fcn.00405c60
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47ad8d
mov eax, dword [ebp - 0x14]
call fcn.0047a194
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47ad8d
mov byte [ebp - 0x21], 0
push 0x13
push 6
mov ecx, dword [ebp - 0x14]
mov edx, 0x3cc
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
lea eax, [ebp - 0x1420]
mov ecx, dword [ebp - 0x14]
mov edx, 0x47afec
call fcn.00405ae8
mov eax, dword [ebp - 0x1420]
call fcn.00478600
lea edx, [ebp - 0x1424]
lea eax, [ebp - 0x113f]
call fcn.0040bc38
mov esi, dword [ebp - 0x1424]
mov eax, dword [ebp - 0x14]
call fcn.00405c60
push eax
mov dword [ebp - 0x1414], esi
mov eax, dword [ebp - 0x1414]
call fcn.00405c60
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47ae5f
mov byte [ebp - 0x21], 0
push 0x13
push 7
lea eax, [ebp - 0x142c]
lea edx, [ebp - 0x113f]
mov ecx, 0x105
call fcn.00405a40
push dword [ebp - 0x142c]
push 0x47b00c
push dword [ebp - 0x14]
lea eax, [ebp - 0x1428]
mov edx, 3
call fcn.00405b64
mov ecx, dword [ebp - 0x1428]
mov edx, 0x3cd
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
push 0x47b01c
lea edx, [ebp - 0x1434]
lea eax, [ebp - 0x113f]
call fcn.0040bc38
push dword [ebp - 0x1434]
push 0x47b00c
push dword [ebp - 0x14]
lea eax, [ebp - 0x1430]
mov edx, 4
call fcn.00405b64
mov eax, dword [ebp - 0x1430]
call fcn.00478600
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x47aea8
lea edx, [ebp - 0x143c]
mov eax, dword [ebp - 0x14]
call fcn.0040b798
mov eax, dword [ebp - 0x143c]
lea edx, [ebp - 0x1438]
call fcn.00409f84
mov eax, dword [ebp - 0x1438]
mov edx, 0x47af60
call fcn.00405bf8
je 0x47aea8
mov eax, dword [ebp - 0x14]
call fcn.0047997c
cmp byte [ebp + 8], 0
je 0x47af01
lea edx, [ebp - 0x1444]
mov eax, dword [ebp - 0x14]
call fcn.0040b798
mov eax, dword [ebp - 0x1444]
lea edx, [ebp - 0x1440]
call fcn.00409f84
mov eax, dword [ebp - 0x1440]
mov edx, 0x47af60
call fcn.00405bf8
jne 0x47af01
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00474db4
cmp byte [ebx + 0x191], 0
jne 0x47af01
mov eax, dword [ebp - 0x14]
call fcn.00405c60
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47af4b
lea eax, [ebp - 0x1444]
mov edx, 0xc
call fcn.004057f4
lea eax, [ebp - 0x1410]
mov edx, 0x11
call fcn.004057f4
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004057f4
lea eax, [ebp + 0xc]
call fcn.004057d0
ret