Function at 0x1002d3f0
Capabilities:
Connect to http server

Disassembly:
sub esp, 0x340
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24d]
mov byte [esp + 0x24c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x35c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], 0x1004a818
mov dword [esp + 0x3c], 0x1004a82c
mov dword [esp + 0x40], 0x1004a83c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
jbe 0x1002d810
mov eax, dword [esp + 0x358]
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
lea esi, [esp + 0x38]
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1002d49e
inc ebx
add esi, 4
cmp ebx, 3
jb 0x1002d473
cmp ebx, 3
je 0x1002d7e8
mov esi, dword [esp + ebx*4 + 0x38]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x358]
push 0x2f
not ecx
dec ecx
add ecx, ebp
add ecx, eax
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x1002d7e8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x148]
push 0x2f
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x35c]
not ecx
dec ecx
add ecx, ebp
add ecx, edi
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, eax
or ecx, 0xffffffff
sub edx, ebp
xor eax, eax
sub edx, edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov edx, dword [esp + 0x364]
add ecx, ebp
add ecx, edx
lea eax, [esp + 0x154]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x1002d574
mov dword [esp + 0x18], 0x1bb
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x44]
push 0x40
push ecx
lea ebp, [esp + 0x4c]
call esi
add esp, 8
test eax, eax
je 0x1002d5e5
lea edx, [esp + 0x44]
push 0x3a
push edx
call esi
add esp, 8
test eax, eax
je 0x1002d5e5
lea eax, [esp + 0x44]
push 0x3a
push eax
call esi
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x4c]
push 0x40
push edx
mov byte [eax], 0
mov dword [esp + 0x34], ecx
call esi
mov byte [eax], 0
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x45]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + edx + 1]
push 0x3a
push ebp
call esi
add esp, 8
test eax, eax
je 0x1002d617
push 0x3a
push ebp
call esi
mov byte [eax], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebp + 1]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x24c]
test al, al
mov al, byte [esp + 0x148]
jne 0x1002d65e
test al, al
je 0x1002d739
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1002d6c1
test al, al
je 0x1002d7f1
lea eax, [esp + 0x148]
lea ecx, [esp + 0x24c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x1002d739
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x1002d6c1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.10021220
add esp, 0xc
test eax, eax
je 0x1002d810
test ebx, ebx
jl 0x1002d739
cmp ebx, 1
jle 0x1002d714
cmp ebx, 2
jne 0x1002d739
mov eax, dword [0x100436bc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
mov eax, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ebp
push ecx
jmp 0x1002d72f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 3
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1002d810
mov edi, dword [esp + 0x354]
test edi, edi
je 0x1002d789
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x35c]
inc ecx
push 0x2f
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
inc eax
lea ecx, [esp + 0x30]
push eax
push ecx
push 0x8000
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1002d78d
mov esi, dword [esp + 0x14]
push 0
push ebx
push esi
push edi
call fcn.100217a0
add esp, 0x10
mov dword [esi + 0x400], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eff
je 0x1002d83d
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x35c]
inc eax
add ebp, 0x72c
add edx, 0x72c
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], edx
jae 0x1002d83d
xor ebx, ebx
jmp 0x1002d463
mov edi, dword [esp + 0x354]
jmp 0x1002d7b5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002d800
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x354]
push edi
call fcn.10021470
add esp, 4
mov ecx, dword [esp + 0x35c]
mov edx, dword [esp + 0x28]
xor eax, eax
pop edi
cmp edx, ecx
pop esi
pop ebp
pop ebx
sete al
add esp, 0x340
ret
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1002d817
mov edx, dword [esp + 0x35c]
mov eax, dword [esp + 0x28]
cmp eax, edx
jae 0x1002d85d
push edi
call fcn.10021470
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1002d820