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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.1000dce0
mov eax, dword [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10003db0
mov eax, dword [0x10037b8c]
cmp dword [eax], 0
jne 0x1000407b
call fcn.10003fc0
mov dword [ebp - 0x1084], 0x1000
mov dword [ebp - 0x105c], 0
mov ecx, dword [0x10037b8c]
mov edx, dword [ecx]
mov dword [ebp - 0x103c], edx
mov eax, 2
mov word [ebp - 0x1040], ax
push 0x50
call dword [0x10039ad4]
mov word [ebp - 0x103e], ax
push 0
push 1
push 2
call dword [0x10039ae8]
mov dword [ebp - 0x1044], eax
push 0x10
lea ecx, [ebp - 0x1040]
push ecx
mov edx, dword [ebp - 0x1044]
push edx
call dword [0x10039ae4]
mov dword [ebp - 0x105c], eax
cmp dword [ebp - 0x105c], 0
je 0x10004118
push 0x10
lea eax, [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [0x10039ae4]
mov dword [ebp - 0x105c], eax
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100040e6
push 0x104
call fcn.1000d358
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 [0x10033020]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x10033024]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
push eax
push 0x10037b11
mov ecx, dword [0x10039b28]
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 0x100041a0
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 [0x10039ae0]
mov dword [ebp - 0x105c], eax
cmp dword [ebp - 0x105c], 0xffffffff
jne 0x10004210
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10004480
push 0x1000
push 0
lea edx, [ebp - 0x1030]
push edx
call fcn.1000ecb0
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 [0x10033038]
mov dword [ebp - 0xc], eax
mov cx, word [0x1003303c]
mov word [ebp - 8], cx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1030]
push eax
call fcn.1000bcd0
add esp, 8
mov dword [ebp - 0x107c], eax
cmp dword [ebp - 0x107c], 0
je 0x100042cb
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10004480
cmp dword [ebp - 0x1060], 0
je 0x10004359
cmp dword [ebp - 0x1054], 0
jg 0x100042f5
mov edx, dword [ebp - 0x1044]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10004480
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.1000d358
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 0x10004374
mov eax, dword [ebp - 0x104c]
add eax, 1
mov dword [ebp - 0x104c], eax
mov ecx, dword [ebp - 0x104c]
cmp ecx, dword [ebp - 0x1054]
jge 0x100043ed
cmp dword [ebp - 0x1060], 0
je 0x1000439e
cmp dword [ebp - 0x104c], 0x2c
jne 0x1000439e
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 0x100043e8
mov dword [ebp - 0x1050], 0
jmp 0x10004365
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.1000e730
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.1000ecb0
add esp, 0xc
cmp dword [ebp - 0x1054], 0
jg 0x10004258
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.1000cdca
mov esp, ebp
pop ebp
ret