Function at 0x407370
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x14]
or dword [ebp - 0x14], 0xffffffff
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
cmp eax, ebx
je 0x40739c
mov eax, dword [eax]
dec eax
mov dword [ebp - 0xc], eax
push esi
push edi
push 0x1cc
push 0x1618
mov dword [ebp - 8], 0x1f4
call fcn.0040107a
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x407768
add eax, 0x130c
lea esi, [eax + 0x104]
mov dword [ebp - 0x30], esi
cmp dword [ebp + 0x18], ebx
je 0x4073de
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x28], eax
mov byte [esi], bl
mov dword [ebp - 0x2c], ebx
cmp byte [esi], bl
jne 0x4073ea
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
push 0x50
lea eax, [ebp - 0x24]
push eax
add edi, 0x1208
push edi
push esi
call fcn.00406195
push 0x40c428
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.00401910
test eax, eax
jge 0x407428
cmp esi, ebx
jne 0x407428
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x407428
cmp byte [eax], bl
je 0x407428
inc byte [ebp - 1]
cmp byte [ebp - 1], bl
jne 0x407435
cmp esi, ebx
je 0x407646
cmp dword [ebp + 8], ebx
je 0x4074b5
cmp byte [ebp - 1], bl
jne 0x40746c
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
cdq
push edx
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x24]
push edi
push 0xffffffffffffffff
call fcn.004063ba
mov esi, eax
cmp esi, ebx
jne 0x40746f
mov dword [ebp - 8], 0x1f4
jmp 0x407768
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0xfff
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x24]
push edi
push dword [ebp + 8]
call fcn.00406a57
mov dword [ebp - 0x14], eax
cmp byte [ebp - 1], bl
jne 0x4074a3
push esi
call fcn.0040315f
cmp dword [ebp - 0x14], 0xffffffff
je 0x407652
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
jmp 0x40752a
push dword [ebp - 0x24]
push edi
call fcn.0040678a
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x407652
push 1
push esi
call fcn.00405afd
cmp byte [ebp - 1], bl
jne 0x4074f7
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
cdq
push edx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push edi
push esi
call fcn.004063ba
jmp 0x407500
push dword [ebp + 0x10]
push esi
call fcn.00406020
cmp dword [ebp + 0x18], ebx
je 0x40750e
push dword [ebp + 0x18]
push esi
call fcn.00406020
mov edi, dword [ebp - 0x18]
push 0x2710
push 0xfff
push edi
push esi
call fcn.004060c7
cmp eax, ebx
jle 0x407652
lea esi, [eax + edi]
push 0x104
lea eax, [edi + 0x1000]
push eax
push edi
mov byte [esi], bl
call fcn.004019a5
push ebx
mov dword [ebp - 0x10], eax
push 1
lea eax, [edi + 0x1000]
push eax
call fcn.00401a35
push eax
call fcn.00401481
push 5
mov dword [ebp - 8], eax
lea eax, [edi + 0x1000]
push str.HTTP_
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40765e
mov eax, dword [ebp - 0x10]
cmp byte [eax], bl
je 0x40761d
jmp 0x40758a
mov edi, dword [ebp - 0x18]
push 0x104
add edi, 0x1000
push edi
push dword [ebp - 0x10]
call fcn.004019a5
mov dword [ebp - 0x10], eax
cmp byte [edi], bl
je 0x40761d
lea eax, [edi + 0x208]
mov dword [ebp - 0x38], eax
add eax, 0x104
push eax
push 0x40c340
push edi
call fcn.00401597
add esp, 0xc
push 1
push edi
call fcn.00401a35
mov edi, eax
mov eax, dword [ebp - 0x38]
push str.Content_Length:
add eax, 0x104
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4075f0
push ebx
push edi
call fcn.00401481
mov dword [ebp - 0x34], eax
jmp 0x407612
mov eax, dword [ebp - 0x18]
push str.Location:
add eax, 0x130c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x407612
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x10]
cmp byte [eax], bl
jne 0x407587
cmp dword [ebp - 8], 0x12e
jne 0x407676
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xa
jg 0x40766a
mov eax, dword [ebp - 0x30]
cmp byte [eax], bl
je 0x407676
push dword [ebp - 0x14]
call fcn.00405bf9
mov esi, dword [ebp - 0x30]
jmp 0x4073e3
mov dword [ebp - 8], 0x190
jmp 0x407768
mov dword [ebp - 8], 0x1e4
jmp 0x407768
mov dword [ebp - 8], 0x19c
jmp 0x407768
mov dword [ebp - 8], 0x1ec
jmp 0x407768
cmp dword [ebp + 0x10], ebx
je 0x407771
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub esi, dword [ebp - 0x10]
mov dword [ebp + 0x18], eax
cmp esi, ebx
jle 0x4076e2
cmp esi, dword [ebp - 0xc]
jle 0x4076d1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0x1e5
jmp 0x407768
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x4076f8
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, ebx
jle 0x40771b
call edi
add dword [ebp + 0x10], esi
sub dword [ebp - 0xc], esi
add dword [ebp - 0x1c], esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x407714
cmp dword [ebp - 0x1c], eax
je 0x407768
ja 0x40774a
cmp dword [ebp - 0xc], ebx
jne 0x4076e2
jmp 0x4076c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x407753
call edi
sub eax, dword [ebp + 0x18]
cmp eax, 0x7530
ja 0x407761
push 0x64
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x4076e2
mov dword [ebp - 8], 0xd2
jmp 0x407768
cmp dword [ebp - 0x34], ebx
je 0x407768
mov dword [ebp - 8], 0x1e6
jmp 0x407768
mov dword [ebp - 8], 0x198
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x407771
mov byte [eax], bl
mov eax, dword [ebp + 0x14]
pop edi
pop esi
cmp eax, ebx
je 0x40777f
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
push dword [ebp - 0x14]
call fcn.00405bf9
cmp dword [ebp - 0x20], ebx
pop ebx
je 0x407796
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0040315f
mov eax, dword [ebp - 8]
leave
ret 0x18