Function at 0x481dc4
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 0x481dcd
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.00405034
mov eax, dword [ebp + 0xc]
call fcn.00405034
xor eax, eax
push ebp
push 0x482614
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.00404c1c
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.00481774
cmp byte [ebx + 0x69], 2
jne 0x481f5c
lea edx, [ebp - 0x13d0]
mov eax, dword [ebp + 0xc]
call fcn.00409918
cmp dword [ebp - 0x13d0], 0
jne 0x481e5f
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404e90
jmp 0x481e6a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404c1c
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00405044
mov edx, eax
lea eax, [ebp - 0x13d4]
call fcn.00404d7c
mov eax, dword [ebp - 0x13d4]
push eax
mov eax, dword [ebp - 4]
call fcn.00405044
mov edx, eax
lea eax, [ebp - 0x13d8]
call fcn.00404d7c
mov edx, dword [ebp - 0x13d8]
mov eax, ebx
pop ecx
call fcn.00481a9c
test al, al
je 0x481f53
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x481eed
lea edx, [ebp - 0x13dc]
mov eax, dword [ebp - 0x1c]
call fcn.00408cbc
mov edx, dword [ebp - 0x13dc]
mov eax, 0x482630
call fcn.00405188
test eax, eax
jne 0x481eed
mov eax, dword [ebp - 0x1c]
call fcn.00481150
cmp byte [ebp + 8], 0
je 0x481f4a
lea edx, [ebp - 0x13e0]
mov eax, dword [ebp - 0x1c]
call fcn.00408cbc
mov edx, dword [ebp - 0x13e0]
mov eax, 0x482630
call fcn.00405188
test eax, eax
je 0x481f4a
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.0047cc94
cmp byte [ebx + 0x189], 0
jne 0x481f4a
mov eax, dword [ebp - 0x1c]
call fcn.00405044
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 5], 1
jmp 0x4825c4
mov byte [ebp - 5], 0
jmp 0x4825c4
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.00481974
mov edx, dword [ebp - 0x13e4]
lea eax, [ebp - 4]
call fcn.00404c1c
cmp byte [ebx + 0x69], 0
jne 0x482010
cmp dword [ebx + 0x40], 0
je 0x481fbe
cmp byte [ebx + 0x118], 0
jne 0x481fbe
lea ecx, [ebp - 0x38]
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.00481644
mov eax, dword [ebp - 0x38]
call fcn.00405044
push eax
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebx + 0x118], 1
push 0
push 0x84000000
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405044
mov edi, eax
push edi
push esi
call sub.wininet.dll_FtpFindFirstFileA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x481fef
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 0x482268
mov edi, 0x84000100
cmp byte [ebx + 0x14c], 0
je 0x482024
or edi, 0x400000
cmp byte [ebx + 0x14d], 0
je 0x482033
or edi, 0x20000000
cmp byte [ebx + 0x198], 0
jne 0x4820d1
cmp dword [ebx + 0x70], 0
je 0x482050
cmp dword [ebx + 0x4c], 0
jne 0x4820d1
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x70]
call fcn.00404c1c
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x4c]
call fcn.00404c1c
lea ecx, [ebp - 0x13ec]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00481870
mov ecx, dword [ebp - 0x13ec]
lea eax, [ebp - 0x13e8]
mov edx, 0x482640
call fcn.00404e90
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0047d434
test al, al
jne 0x4820bb
push 0
push 0
mov ecx, 0x482654
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4825c4
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x10]
call fcn.00404bd8
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x14]
call fcn.00404bd8
cmp dword [ebx + 0x70], 0
jne 0x4820dd
cmp dword [ebx + 0x4c], 0
je 0x482128
push 0x482678
push dword [ebx + 0x70]
push 0x482698
push dword [ebx + 0x4c]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.00404f04
mov eax, dword [ebp - 0x13f4]
lea edx, [ebp - 0x13f0]
call fcn.0047d0e8
push dword [ebp - 0x13f0]
push 0x4826a4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f04
jmp 0x482130
lea eax, [ebp - 0xc]
call fcn.00404b84
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.00404e44
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405044
push eax
mov eax, dword [ebp - 4]
call fcn.00405044
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 0x482268
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 0x482230
cmp byte [ebx + 0x198], 1
jne 0x482230
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x70]
call fcn.00404c1c
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x4c]
call fcn.00404c1c
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00481870
mov ecx, dword [ebp - 0x13fc]
lea eax, [ebp - 0x13f8]
mov edx, 0x482640
call fcn.00404e90
mov eax, dword [ebp - 0x13f8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0047d434
test al, al
je 0x482216
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x10]
call fcn.00404bd8
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x14]
call fcn.00404bd8
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4820d1
push 0
push 0
mov ecx, 0x482654
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4825c4
cmp dword [ebp - 0x34], 0x12c
jb 0x482268
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.004092c8
mov ecx, dword [ebp - 0x1400]
mov edx, 0x394
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4825c4
cmp dword [ebp - 0x24], 0
jne 0x482286
push 2
push 1
mov ecx, dword [ebp - 0x20]
mov edx, 0x395
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4825c4
lea ecx, [ebp - 0x1404]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00481774
mov ecx, dword [ebp - 0x1404]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.00404e90
lea eax, [ebp - 0x113f]
push eax
push 0
push 0x4826ac
mov eax, dword [ebx + 0x148]
call fcn.00405044
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x1408]
lea edx, [ebp - 0x113f]
mov ecx, 0x105
call fcn.00404df4
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 0x48233a
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 0x4823d9
mov eax, dword [0x48b07c]
mov eax, dword [eax]
call fcn.00466318
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 0x482378
mov byte [ebp - 0x3a], 1
jmp 0x4823e9
cmp dword [ebp - 0x18], 0
jbe 0x4823a2
cmp dword [ebp - 0x18], 0x1000
ja 0x4823a2
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 0x4823c5
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 0x4823d9
mov byte [ebp - 5], 1
cmp dword [ebp - 0x18], 0
jbe 0x4823e9
cmp byte [ebp - 0x39], 0
je 0x482349
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 + 0x179], al
mov al, byte [ebp - 0x39]
or al, byte [ebp - 0x3a]
je 0x48246e
lea edx, [ebp - 0x140c]
lea eax, [ebp - 0x113f]
call fcn.00409d08
mov eax, dword [ebp - 0x140c]
call fcn.00409820
test al, al
jne 0x482465
lea edx, [ebp - 0x1414]
lea eax, [ebp - 0x113f]
call fcn.00409d08
mov ecx, dword [ebp - 0x1414]
lea eax, [ebp - 0x1410]
mov edx, 0x4826bc
call fcn.00404e90
mov eax, dword [ebp - 0x1410]
call fcn.0047fe74
mov byte [ebp - 5], 0
jmp 0x4825c4
mov eax, dword [ebp - 0x1c]
call fcn.004097d4
test al, al
je 0x4824bc
mov eax, dword [ebp - 0x1c]
call fcn.00409820
test al, al
jne 0x4824bc
mov eax, dword [ebp - 0x1c]
call fcn.00481a7c
mov eax, dword [ebp - 0x1c]
call fcn.00409820
test al, al
jne 0x4824bc
mov byte [ebp - 5], 0
lea eax, [ebp - 0x1418]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4826bc
call fcn.00404e90
mov eax, dword [ebp - 0x1418]
call fcn.0047fe74
lea edx, [ebp - 0x141c]
lea eax, [ebp - 0x113f]
call fcn.00409d08
mov eax, dword [ebp - 0x141c]
mov edx, dword [ebp - 0x1c]
call fcn.00409838
test al, al
jne 0x482522
mov byte [ebp - 5], 0
push 0x4826dc
lea edx, [ebp - 0x1424]
lea eax, [ebp - 0x113f]
call fcn.00409d08
push dword [ebp - 0x1424]
push 0x4826fc
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1420]
mov edx, 4
call fcn.00404f04
mov eax, dword [ebp - 0x1420]
call fcn.0047fe74
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp byte [ebp + 8], 0
je 0x48256b
lea edx, [ebp - 0x142c]
mov eax, dword [ebp - 0x1c]
call fcn.00409950
mov eax, dword [ebp - 0x142c]
lea edx, [ebp - 0x1428]
call fcn.00408cbc
mov eax, dword [ebp - 0x1428]
mov edx, 0x482630
call fcn.00404f90
je 0x48256b
mov eax, dword [ebp - 0x1c]
call fcn.00481150
cmp byte [ebp + 8], 0
je 0x4825c4
lea edx, [ebp - 0x1434]
mov eax, dword [ebp - 0x1c]
call fcn.00409950
mov eax, dword [ebp - 0x1434]
lea edx, [ebp - 0x1430]
call fcn.00408cbc
mov eax, dword [ebp - 0x1430]
mov edx, 0x482630
call fcn.00404f90
jne 0x4825c4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0047cc94
cmp byte [ebx + 0x189], 0
jne 0x4825c4
mov eax, dword [ebp - 0x1c]
call fcn.00405044
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48261b
lea eax, [ebp - 0x1434]
mov edx, 0x1a
call fcn.00404ba8
lea eax, [ebp - 0x38]
call fcn.00404b84
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404ba8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404ba8
lea eax, [ebp - 4]
call fcn.00404b84
lea eax, [ebp + 0xc]
call fcn.00404b84
ret