Function at 0x10022e20
Capabilities:
Connect to http server

Disassembly:
sub esp, 0x174
push ebx
push esi
mov esi, dword [esp + 0x180]
push edi
xor ebx, ebx
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x44]
push 6
mov dword [esp + 0x44], ebx
push 0x10048ad0
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], str.anonymous
mov dword [esp + 0x18], str.radarj_
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10022e84
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x174
ret
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
lea edi, [esi + 6]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2f
mov eax, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
call esi
push 0x40
push ebp
mov byte [eax], 0
mov ebx, ebp
call esi
add esp, 0x14
test eax, eax
je 0x10022f21
push 0x3a
push ebp
call esi
add esp, 8
test eax, eax
je 0x10022f21
push 0x3a
push ebp
call esi
push 0x40
push ebp
mov byte [eax], 0
mov dword [esp + 0x3c], ebp
call esi
mov byte [eax], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + ebp + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x10], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ecx + edx + 1]
push 0x3a
push ebx
call esi
add esp, 8
test eax, eax
je 0x10022f53
push 0x3a
push ebx
call esi
mov byte [eax], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ebx + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x188]
push 0x2f
lea eax, [edx + 6]
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x190]
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
inc edi
call fcn.10021220
add esp, 0x14
test eax, eax
je 0x10022fd7
mov edx, dword [0x100436bc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push 0
neg edx
sbb edx, edx
and edx, 0x8000000
push edx
mov edx, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x10022fdb
push 0
lea ecx, [esp + 0x48]
push closesocket
push ecx
push edi
push ebx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
test eax, eax
je 0x10022fdf
mov dword [esp + 0x10], 1
jmp 0x10022fe7
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x10022ff4
push eax
call edi
test ebx, ebx
je 0x10022ffb
push ebx
call edi
test ebp, ebp
je 0x10023009
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10023110
xor edx, edx
xor eax, eax
mov dword [esp + 0x36], edx
mov dword [esp + 0x21], eax
mov dword [esp + 0x3a], edx
mov dword [esp + 0x25], eax
mov dword [esp + 0x3e], edx
lea ecx, [esp + 0x34]
mov word [esp + 0x42], dx
mov byte [esp + 0x20], dl
lea edx, [esp + 0x58]
mov word [esp + 0x29], ax
push ecx
push edx
mov word [esp + 0x3c], 0
mov byte [esp + 0x33], al
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [esp + 0x3a]
mov ecx, dword [esp + 0x36]
mov edx, dword [esp + 0x34]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x10048ad8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x34]
push 0x2d
push ecx
call esi
mov byte [eax], 0
inc eax
push 0x2d
push eax
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
lea edx, [esp + 0x40]
mov byte [eax], 0
push edx
lea eax, [esp + 0x48]
push 0x10048ae8
push eax
call ebp
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0x51]
lea ecx, [esp + 0x44]
push ecx
push 0x10048af0
push esi
call ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push 0x10048af8
lea eax, [ecx + esi + 1]
push eax
call ebp
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x1d4]
shl ecx, 8
or ecx, esi
add esp, 0x48
shl ecx, 8
or ecx, eax
mov dword [edx], ecx
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x174
ret