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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x286
push 0
push 0
dec ecx
jne 0x468ed1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040503c
mov eax, dword [ebp + 0xc]
call fcn.0040503c
xor eax, eax
push ebp
push 0x469704
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404c24
push 3
push 0
mov ecx, dword [ebp - 0x20]
mov edx, 0x393
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046889c
cmp byte [ebx + 0x69], 2
jne 0x469060
lea edx, [ebp - 0x13d0]
mov eax, dword [ebp + 0xc]
call fcn.004099f0
cmp dword [ebp - 0x13d0], 0
jne 0x468f63
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404e98
jmp 0x468f6e
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404c24
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0040504c
mov edx, eax
lea eax, [ebp - 0x13d4]
call fcn.00404d84
mov eax, dword [ebp - 0x13d4]
push eax
mov eax, dword [ebp - 4]
call fcn.0040504c
mov edx, eax
lea eax, [ebp - 0x13d8]
call fcn.00404d84
mov edx, dword [ebp - 0x13d8]
mov eax, ebx
pop ecx
call fcn.00468ba4
test al, al
je 0x469057
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x468ff1
lea edx, [ebp - 0x13dc]
mov eax, dword [ebp - 0x1c]
call fcn.00408cac
mov edx, dword [ebp - 0x13dc]
mov eax, 0x469720
call fcn.00405190
test eax, eax
jne 0x468ff1
mov eax, dword [ebp - 0x1c]
call fcn.00468278
cmp byte [ebp + 8], 0
je 0x46904e
lea edx, [ebp - 0x13e0]
mov eax, dword [ebp - 0x1c]
call fcn.00408cac
mov edx, dword [ebp - 0x13e0]
mov eax, 0x469720
call fcn.00405190
test eax, eax
je 0x46904e
push 3
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, 0x3c5
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00463f20
cmp byte [ebx + 0x181], 0
jne 0x46904e
mov eax, dword [ebp - 0x1c]
call fcn.0040504c
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 5], 1
jmp 0x4696b4
mov byte [ebp - 5], 0
jmp 0x4696b4
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.00468a9c
mov edx, dword [ebp - 0x13e4]
lea eax, [ebp - 4]
call fcn.00404c24
cmp byte [ebx + 0x69], 0
jne 0x469114
cmp dword [ebx + 0x40], 0
je 0x4690c2
cmp byte [ebx + 0x110], 0
jne 0x4690c2
lea ecx, [ebp - 0x38]
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.0046876c
mov eax, dword [ebp - 0x38]
call fcn.0040504c
push eax
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebx + 0x110], 1
push 0
push 0x84000000
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040504c
mov edi, eax
push edi
push esi
call sub.wininet.dll_FtpFindFirstFileA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4690f3
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x13ac]
mov dword [ebp - 0x34], eax
push 0
push 2
push 0x80000000
push edi
push esi
call sub.wininet.dll_FtpOpenFileA
mov dword [ebp - 0x24], eax
jmp 0x46936c
mov edi, 0x84000100
cmp byte [ebx + 0x144], 0
je 0x469128
or edi, 0x400000
cmp byte [ebx + 0x145], 0
je 0x469137
or edi, 0x20000000
cmp byte [ebx + 0x190], 0
jne 0x4691d5
cmp dword [ebx + 0x70], 0
je 0x469154
cmp dword [ebx + 0x4c], 0
jne 0x4691d5
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x70]
call fcn.00404c24
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x4c]
call fcn.00404c24
lea ecx, [ebp - 0x13ec]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00468998
mov ecx, dword [ebp - 0x13ec]
lea eax, [ebp - 0x13e8]
mov edx, 0x469730
call fcn.00404e98
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004646c0
test al, al
jne 0x4691bf
push 0
push 0
mov ecx, 0x469744
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4696b4
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x10]
call fcn.00404be0
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x14]
call fcn.00404be0
cmp dword [ebx + 0x70], 0
jne 0x4691e1
cmp dword [ebx + 0x4c], 0
je 0x46922c
push 0x469768
push dword [ebx + 0x70]
push 0x469788
push dword [ebx + 0x4c]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.00404f0c
mov eax, dword [ebp - 0x13f4]
lea edx, [ebp - 0x13f0]
call fcn.00464374
push dword [ebp - 0x13f0]
push 0x469794
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f0c
jmp 0x469234
lea eax, [ebp - 0xc]
call fcn.00404b8c
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.00404e4c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040504c
push eax
mov eax, dword [ebp - 4]
call fcn.0040504c
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 4
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x24], 0
je 0x46936c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000013
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x34], 0x191
jne 0x469334
cmp byte [ebx + 0x190], 1
jne 0x469334
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x70]
call fcn.00404c24
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x4c]
call fcn.00404c24
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00468998
mov ecx, dword [ebp - 0x13fc]
lea eax, [ebp - 0x13f8]
mov edx, 0x469730
call fcn.00404e98
mov eax, dword [ebp - 0x13f8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004646c0
test al, al
je 0x46931a
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x10]
call fcn.00404be0
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x14]
call fcn.00404be0
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4691d5
push 0
push 0
mov ecx, 0x469744
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4696b4
cmp dword [ebp - 0x34], 0x12c
jb 0x46936c
push 6
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1400]
call fcn.004092b8
mov ecx, dword [ebp - 0x1400]
mov edx, 0x394
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4696b4
cmp dword [ebp - 0x24], 0
jne 0x46938a
push 2
push 1
mov ecx, dword [ebp - 0x20]
mov edx, 0x395
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4696b4
lea ecx, [ebp - 0x1404]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046889c
mov ecx, dword [ebp - 0x1404]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404e98
lea eax, [ebp - 0x113f]
push eax
push 0
push 0x46979c
mov eax, dword [ebx + 0x140]
call fcn.0040504c
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x1408]
lea edx, [ebp - 0x113f]
mov ecx, 0x105
call fcn.00404dfc
mov edx, dword [ebp - 0x1408]
lea eax, [ebp - 0x128c]
call fcn.004032a8
mov edx, 1
lea eax, [ebp - 0x128c]
call fcn.004036b4
call fcn.00402c2c
mov dword [ebp - 0x18], 0x1000
cmp byte [ebx + 0x69], 1
jne 0x46943e
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000005
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
xor esi, esi
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x3a], 0
jmp 0x4694dd
mov eax, dword [0x47c738]
mov eax, dword [eax]
call fcn.0046231c
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x103a]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x46947c
mov byte [ebp - 0x3a], 1
jmp 0x4694ed
cmp dword [ebp - 0x18], 0
jbe 0x4694a6
cmp dword [ebp - 0x18], 0x1000
ja 0x4694a6
push 0
lea edx, [ebp - 0x103a]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x128c]
call fcn.00403404
call fcn.00402c2c
add esi, dword [ebp - 0x18]
cmp word [ebx + 0x8a], 0
je 0x4694c9
push esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
lea edx, [ebp - 0x39]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp dword [ebp - 0x18], 0
jbe 0x4694dd
mov byte [ebp - 5], 1
cmp dword [ebp - 0x18], 0
jbe 0x4694ed
cmp byte [ebp - 0x39], 0
je 0x46944d
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x128c]
call fcn.00403424
call fcn.00402c2c
mov al, byte [ebp - 0x39]
mov byte [ebx + 0x171], al
mov al, byte [ebp - 0x39]
or al, byte [ebp - 0x3a]
je 0x469572
lea edx, [ebp - 0x140c]
lea eax, [ebp - 0x113f]
call fcn.00409e58
mov eax, dword [ebp - 0x140c]
call fcn.00409864
test al, al
jne 0x469569
lea edx, [ebp - 0x1414]
lea eax, [ebp - 0x113f]
call fcn.00409e58
mov ecx, dword [ebp - 0x1414]
lea eax, [ebp - 0x1410]
mov edx, 0x4697ac
call fcn.00404e98
mov eax, dword [ebp - 0x1410]
call fcn.00467090
mov byte [ebp - 5], 0
jmp 0x4696b4
mov eax, dword [ebp - 0x1c]
call fcn.004097c4
test al, al
je 0x4695ac
mov eax, dword [ebp - 0x1c]
call fcn.00409864
test al, al
jne 0x4695ac
mov byte [ebp - 5], 0
lea eax, [ebp - 0x1418]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4697ac
call fcn.00404e98
mov eax, dword [ebp - 0x1418]
call fcn.00467090
lea edx, [ebp - 0x141c]
lea eax, [ebp - 0x113f]
call fcn.00409e58
mov eax, dword [ebp - 0x141c]
mov edx, dword [ebp - 0x1c]
call fcn.0040987c
test al, al
jne 0x469612
mov byte [ebp - 5], 0
push 0x4697cc
lea edx, [ebp - 0x1424]
lea eax, [ebp - 0x113f]
call fcn.00409e58
push dword [ebp - 0x1424]
push 0x4697ec
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1420]
mov edx, 4
call fcn.00404f0c
mov eax, dword [ebp - 0x1420]
call fcn.00467090
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x46965b
lea edx, [ebp - 0x142c]
mov eax, dword [ebp - 0x1c]
call fcn.00409a28
mov eax, dword [ebp - 0x142c]
lea edx, [ebp - 0x1428]
call fcn.00408cac
mov eax, dword [ebp - 0x1428]
mov edx, 0x469720
call fcn.00404f98
je 0x46965b
mov eax, dword [ebp - 0x1c]
call fcn.00468278
cmp byte [ebp + 8], 0
je 0x4696b4
lea edx, [ebp - 0x1434]
mov eax, dword [ebp - 0x1c]
call fcn.00409a28
mov eax, dword [ebp - 0x1434]
lea edx, [ebp - 0x1430]
call fcn.00408cac
mov eax, dword [ebp - 0x1430]
mov edx, 0x469720
call fcn.00404f98
jne 0x4696b4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00463f20
cmp byte [ebx + 0x181], 0
jne 0x4696b4
mov eax, dword [ebp - 0x1c]
call fcn.0040504c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46970b
lea eax, [ebp - 0x1434]
mov edx, 0x1a
call fcn.00404bb0
lea eax, [ebp - 0x38]
call fcn.00404b8c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404bb0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404bb0
lea eax, [ebp - 4]
call fcn.00404b8c
lea eax, [ebp + 0xc]
call fcn.00404b8c
ret