Function at 0x10003890
Capabilities:
Read data from internet
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1001203c]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov dword [esp + 0x18], eax
xor eax, eax
push esi
mov esi, edx
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov byte [esp + 0x31], al
mov byte [esp + 0xf], al
mov dword [esp + 0x14], eax
movsx eax, byte [esi]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
mov byte [esp + 0x24], 0
cmp eax, 7
ja case.0x100038de.2
jmp dword [eax*4 + 0x10003d0c]
mov edx, dword [edi + 9]
add edx, 0xa
push edx
call fcn.10004b7b
mov ebp, eax
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebp
call fcn.10009150
mov ecx, dword [edi + 9]
add ecx, 0xa
push ecx
call fcn.10004b7b
mov ebx, eax
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
mov eax, dword [edi + 9]
add esp, 0x20
xor esi, esi
test eax, eax
je 0x10003955
jmp 0x10003930
mov edx, dword [edi + 9]
mov ecx, dword [esp + 0x20]
push 0
sub edx, esi
push edx
mov edx, dword [ecx + 0xd]
lea eax, [esi + ebp]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [edi + 9]
add esi, eax
sub ecx, esi
jne 0x10003930
jmp 0x10003959
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x1000396c
mov edx, dword [esp + 0x10]
mov dword [edx], 0
jmp 0x10003cd7
mov eax, dword [esp + 0x10]
push ebx
push 0x10
mov dword [eax], esi
mov ecx, dword [edi + 9]
push 0x1001348c
push ecx
lea ecx, [esp + 0x24]
mov edx, ebp
mov byte [esp + 0x1f], 1
call fcn.10002130
mov eax, dword [edi + 9]
add esp, 0x10
cmp dword [esp + 0x14], eax
je 0x100039a9
mov edx, dword [esp + 0x10]
mov dword [edx], 0
jmp 0x10003cd7
movzx ecx, word [edi + 7]
dec ecx
imul ecx, eax
add ecx, dword [esp + 0x1c]
push eax
push ebx
push ecx
call fcn.1000af10
mov edx, dword [edi + 9]
add edx, 0xa
push edx
push 0
push ebp
call fcn.10009150
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
add esp, 0x24
jmp 0x10003cdc
mov ecx, dword [edi + 9]
add ecx, 0xa
push ecx
call fcn.10004b7b
mov edx, dword [edi + 9]
add edx, 0xa
push edx
mov ebp, eax
push 0
push ebp
call fcn.10009150
mov eax, dword [edi + 9]
add eax, 0xa
push eax
call fcn.10004b7b
mov ebx, eax
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
mov eax, dword [edi + 9]
mov ecx, dword [esi + 9]
add esp, 0x20
lea edx, [esp + 0x18]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10003a74
or eax, 0xffffffff
mov esi, dword [esp + 0x10]
push ebx
push 0x10
mov dword [esi], eax
mov ecx, dword [edi + 9]
push 0x1001348c
push ecx
lea ecx, [esp + 0x24]
mov edx, ebp
mov byte [esp + 0x1f], 1
call fcn.10002130
mov eax, dword [edi + 9]
add esp, 0x10
cmp dword [esp + 0x14], eax
je 0x10003a91
mov dword [esi], 0
jmp 0x10003cd7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10003a3b
inc esi
call fcn.10002810
mov eax, dword [esp + 0x10]
mov dword [eax], 0
jmp 0x10003cd7
movzx edx, word [edi + 7]
dec edx
imul edx, eax
add edx, dword [esp + 0x1c]
push eax
push ebx
push edx
call fcn.1000af10
mov eax, dword [edi + 9]
push eax
push 0
push ebp
call fcn.10009150
mov ecx, dword [edi + 9]
push ecx
push 0
push ebx
call fcn.10009150
add esp, 0x24
jmp 0x10003cdc
mov edx, dword [edi + 9]
add edx, 0xa
push edx
call fcn.10004b7b
mov ebp, eax
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebp
call fcn.10009150
mov ecx, dword [edi + 9]
add ecx, 0xa
push ecx
call fcn.10004b7b
mov ebx, eax
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
mov eax, dword [edi + 9]
mov edx, dword [esi + 0xd]
add esp, 0x20
push 0
push eax
push ebp
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10003b26
mov eax, dword [esp + 0x10]
mov dword [eax], 0
jmp 0x10003cd7
mov ecx, dword [edi + 9]
push ebx
push 0x10
push 0x1001348c
push ecx
lea ecx, [esp + 0x24]
mov edx, ebp
mov byte [esp + 0x1f], 1
call fcn.10002130
mov eax, dword [edi + 9]
add esp, 0x10
cmp dword [esp + 0x14], eax
je 0x10003b62
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10004b1d
add esp, 0x2c
ret
push eax
mov esi, ebx
call fcn.10004090
add esp, 4
cmp byte [edi + 0xd], al
je 0x10003b81
mov edx, dword [esp + 0x10]
mov dword [edx], 0
jmp 0x10003cd7
movzx ecx, word [edi + 7]
mov eax, dword [edi + 9]
dec ecx
imul ecx, eax
add ecx, dword [esp + 0x1c]
push eax
push ebx
push ecx
call fcn.1000af10
mov edx, dword [edi + 9]
add edx, 0xa
push edx
push 0
push ebp
call fcn.10009150
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
mov cx, word [edi + 5]
dec cx
movzx eax, cx
add esp, 0x24
mov dword [esp + 0x18], eax
test ax, ax
je 0x10003cdc
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xd]
mov esi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0xe
lea edx, [esp + 0x2c]
push edx
push ecx
call esi
test eax, eax
jle 0x10003ccd
movsx edx, byte [esp + 0x24]
cmp edx, 0xaa
jne 0x10003ccd
mov ax, word [edi + 5]
cmp ax, word [esp + 0x29]
jne 0x10003ccd
movzx eax, word [esp + 0x2d]
mov cx, word [esp + 0x2b]
mov dl, byte [esp + 0x2f]
add dword [esp + 0x18], 0xffff
push 0
push eax
mov dword [edi + 9], eax
mov eax, dword [esp + 0x28]
mov word [edi + 7], cx
mov byte [edi + 0xd], dl
mov ecx, dword [eax + 0xd]
push ebp
push ecx
call esi
test eax, eax
jle 0x1000395d
mov edx, dword [edi + 9]
mov eax, dword [esp + 0x10]
add dword [eax], edx
mov eax, dword [edi + 9]
push ebx
push 0x10
push 0x1001348c
push eax
lea ecx, [esp + 0x24]
mov edx, ebp
call fcn.10002130
mov eax, dword [edi + 9]
add esp, 0x10
cmp dword [esp + 0x14], eax
jne 0x10003cd7
push eax
mov esi, ebx
call fcn.10004090
add esp, 4
cmp byte [edi + 0xd], al
jne 0x10003a82
movzx ecx, word [edi + 7]
mov eax, dword [edi + 9]
dec ecx
imul ecx, eax
add ecx, dword [esp + 0x1c]
push eax
push ebx
push ecx
call fcn.1000af10
mov edx, dword [edi + 9]
add edx, 0xa
push edx
push 0
push ebp
call fcn.10009150
mov eax, dword [edi + 9]
add eax, 0xa
push eax
push 0
push ebx
call fcn.10009150
add esp, 0x24
cmp word [esp + 0x18], 0
jne 0x10003bd0
jmp 0x10003cdc
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov byte [esp + 0xf], 0
test ebp, ebp
je 0x10003ce9
push ebp
call fcn.10004e69
add esp, 4
test ebx, ebx
je case.0x100038de.2
push ebx
call fcn.10004e69
add esp, 4
mov ecx, dword [esp + 0x34]
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004b1d
add esp, 0x2c
ret