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

Disassembly:
mov eax, 0x415b14
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x24]
xor ebx, ebx
lea edi, [esi + 0x4c]
push 0x5ab
push ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 0x5aa
push edi
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x401c1c
push str.client_recv_0
push 0
jmp 0x401d81
push edi
push ebx
push dword [esi + 0x28]
push str.OnClientRecv_s_d_len_d__s
push 0
push esi
call fcn.00409f0c
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push ebx
push edi
call fcn.004018d4
test eax, eax
jg 0x401c58
push edi
push str.must_recv_get_request__s
push 1
push esi
call fcn.00409f0c
add esp, 0x10
jmp 0x401e3f
push dword [ebp - 0x14]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi + 0x28]
push str.cli_d_WaitForServer_d_fail_pre_s_cur_s
push 0
push esi
call fcn.00409f0c
add esp, 0x1c
mov ecx, esi
call fcn.00401b84
test eax, eax
jge 0x401ca0
push dword [ebp - 0x14]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi + 0x28]
push str.cli_d_WaitForServer_d_fail_pre_s_cur_s
push 1
push esi
call fcn.00409f0c
add esp, 0x1c
jmp 0x401e3f
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040262b
push str.Range:
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x401ce6
push ebx
push dword [esi + 0xc]
push dword [esi + 0x28]
push str.Socket_d_GetHead_szURL__s__clilen_d_Range
push 1
push esi
call fcn.00409f0c
add esp, 0x18
or dword [esi + 0x608], 1
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
push str.If_Modified_Since:
push ebx
push edi
call fcn.004021fd
mov edi, eax
cmp edi, ebx
je 0x401d24
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409e87
mov eax, dword [eax]
mov ebx, edi
mov dword [esi + 0x628], eax
or dword [esi + 0x608], 4
push ebx
push dword [esi + 0xc]
push dword [esi + 0x28]
push str.Socket_d_GetHead_szURL__s__clilen_d
push 0
push esi
call fcn.00409f0c
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._KnowChar.xml
push eax
call edi
add esp, 0x20
test eax, eax
jne 0x401d8f
mov eax, dword [ebp - 0x10]
add eax, 0xbf64
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jle 0x401d8f
push eax
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CString::operator_1
mov ecx, esi
call fcn.0040235a
mov ebx, eax
test ebx, ebx
jg 0x401e3f
push str.SendConfig_0
push 1
push esi
call fcn.00409f0c
add esp, 0xc
jmp 0x401e3f
mov eax, dword [esi + 0xc]
push str._main.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401da8
mov ecx, dword [ebp - 0x10]
call fcn.00403087
mov ecx, esi
mov dword [esi + 0x5f8], ebx
call fcn.004019b5
xor edi, edi
mov dword [esi + 0x610], eax
cmp eax, edi
jne 0x401dd6
cmp dword [esi + 0x5fc], edi
jle 0x401dd6
push 1
mov ecx, esi
call fcn.00401a74
mov ebx, eax
jmp 0x401e3f
mov dword [ebp - 0x10], edi
cmp dword [esi + 4], edi
ja 0x401dfc
push edi
push 0x50
push ecx
lea eax, [esi + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004097f1
cmp dword [esi + 4], edi
jbe 0x401e36
mov ecx, esi
call fcn.004018b6
push edi
push str.HEAD
mov ecx, esi
call fcn.00409915
cmp eax, edi
jge 0x401e38
push str.SendHEAD_GET_0
push 1
push esi
call fcn.00409f0c
add esp, 0xc
mov ecx, esi
call fcn.00409d79
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x401dd9
jmp 0x401e38
xor ebx, ebx
cmp dword [esi + 4], edi
ja 0x401e3f
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret