Function at 0x42db50
Capabilities:
Check os version
Connect socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60bbdc
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov byte [esp + 0x3b], al
mov dword [ebx + 0xb8], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax - 0xc]
lea esi, [ebx + 0x38]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x42dbd5
push edx
mov ecx, esi
call fcn.00401990
mov esi, dword [esi]
push esi
call fcn.005ddfc6
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
mov byte [esp + 0x2e], 0
call fcn.0042c9b0
mov eax, dword [esp + 0x30]
add esp, 0x18
test eax, eax
je 0x42dc16
cmp byte [eax], 0
jne 0x42dc4b
mov eax, esi
lea edx, [eax + 1]
jmp 0x42dc20
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42dc20
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x42dc4b
lea eax, [esp + 0x3b]
push eax
call fcn.005ddfc6
push esi
mov dword [esp + 0x20], eax
call fcn.005ddfc6
add esp, 8
jmp 0x42dc54
push esi
call fcn.005ddfc6
add esp, 4
push esi
mov edi, eax
call fcn.005d9100
add esp, 4
cmp dword [ebx + 0x28], 0
mov dword [esp + 0x20], edi
je 0x42dc94
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx - 0xc]
lea esi, [ebx + 0x10]
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x42dc90
push edx
mov ecx, esi
call fcn.00401990
mov esi, dword [esi]
jmp 0x42dc98
mov esi, dword [esp + 0x1c]
cmp dword [ebx + 0x28], 0
je 0x42dca3
mov edi, dword [ebx + 0xc]
jmp 0x42dca7
mov edi, dword [esp + 0x58]
push edi
lea edx, [esp + 0x1a0]
push 0x635f58
push edx
mov dword [esp + 0x34], edi
call fcn.005dbdee
xor eax, eax
add esp, 0xc
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x1a4]
push edx
push esi
mov dword [esp + 0x8c], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x42df3f
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x42ddfb
mov edi, edi
mov eax, dword [esi + 4]
cmp eax, 2
je 0x42dd41
cmp eax, 0x17
jne 0x42ddec
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
mov dword [ebx + 0x60], eax
jl 0x42ddec
cmp dword [esi + 4], 0x17
jne 0x42dd7b
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x17
push 0x29
push eax
mov dword [esp + 0x24], 0xa
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebx + 0x60]
lea edx, [esp + 0x60]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x6c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x18]
mov word [ecx + 2], ax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebx + 0x60]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x42ddf7
call fcn.005dc324
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
call fcn.005dc324
cmp dword [eax], 0x2733
je 0x42ddf7
mov edx, dword [ebx + 0x60]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [esp + 0x28]
mov dword [ebx + 0x60], 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42dd30
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebx + 0x60], 0
jge 0x42df43
mov byte [ebx + 0x44], 1
xor esi, esi
cmp dword [ebx + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
je 0x42de45
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push esi
push esi
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
cmp dword [ebx + 0x40], edi
je 0x42edeb
cmp byte [ebx + 0x44], 0
jne 0x42edeb
mov ecx, ebx
call fcn.0042c380
test eax, eax
jne 0x42de7d
lea esi, [ebx + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.0042c3b0
test eax, eax
jbe 0x42ed1d
cmp byte [ebx + 0x44], 0
jne 0x42ed1d
mov ecx, ebx
call fcn.0042c470
test eax, eax
je 0x42eac2
mov ecx, ebx
call fcn.0042c3b0
lea edi, [ebx + 0x68]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xa0]
sub eax, dword [ebx + 0x9c]
cmp esi, eax
jb 0x42deca
mov esi, eax
cmp esi, 0x10000
jle 0x42ded7
mov esi, 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0x48]
add edx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x60]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x42e940
cdq
add dword [esp + 0x44], eax
push edi
adc dword [esp + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x9c]
add eax, esi
xor edx, edx
div dword [ebx + 0xa0]
push edi
mov dword [ebx + 0x9c], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
jmp 0x42eb85
mov byte [ebx + 0x44], 1
cmp byte [ebx + 0x44], 0
jne 0x42de10
xor esi, esi
cmp dword [ebx + 0x40], esi
lea edi, [esi + 1]
je 0x42e012
jmp 0x42df60
mov eax, dword [ebx + 0x60]
lea ecx, [esp + 0x6c]
push ecx
push 0
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0xa4], eax
push 0
add eax, 1
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0xa8], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x42dfb1
add esi, edi
cmp esi, 0xa
jg 0x42dfe4
cmp dword [ebx + 0x40], 0
jne 0x42df60
jmp 0x42e012
mov edx, dword [ebx + 0x60]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0x1007
push 0xffff
push edx
mov dword [esp + 0x7c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x64], 0
je 0x42e012
mov byte [ebx + 0x44], 1
jmp 0x42e012
cmp dword [ebx + 0x4c], 0
mov byte [ebx + 0x44], 1
je 0x42e012
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8007
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [ebx + 0x44], 0
jne 0x42de10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
je 0x42e048
cmp ecx, esi
je 0x42e048
push str.Authorization
push ecx
push eax
mov ecx, ebx
call fcn.0042c590
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x28], esi
je 0x42e163
call fcn.005bc43d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
je 0x42eddc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x5b8], edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x60]
push str.http:___s:_d__s
push ecx
call fcn.004030a0
mov esi, dword [esp + 0x68]
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
sub eax, edx
add esp, 0x14
or eax, ecx
jge 0x42e0c0
push edx
lea ecx, [esp + 0x58]
call fcn.00401990
mov esi, dword [esp + 0x54]
push esi
call fcn.005ddfc6
mov edx, dword [ebx + 0x20]
mov edx, dword [edx - 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x20]
lea edi, [ebx + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
add esp, 4
or eax, ecx
jge 0x42e0f5
push edx
mov ecx, edi
call fcn.00401990
mov eax, dword [edi]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx - 0xc]
mov dword [esp + 0x24], eax
lea edi, [ebx + 0x24]
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x42e122
push edx
mov ecx, edi
call fcn.00401990
mov edx, dword [esp + 0x24]
mov edi, dword [edi]
push str.Proxy_Authorization
push edx
push edi
mov ecx, ebx
call fcn.0042c590
mov dword [esp + 0x24], eax
mov dword [esp + 0x5b8], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e1bc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x42e1bc
push 0x800
call fcn.005d903d
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x4c], edi
je 0x42edeb
mov ecx, dword [esp + 0x18]
mov word [edi], 0x2f
mov esi, ecx
lea esp, [esp]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x42e190
sub ecx, esi
mov eax, edi
mov edx, ecx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e1a2
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4c]
push 0x636288
push edi
call fcn.005d9e00
add esp, 8
test eax, eax
jne 0x42e238
mov esi, dword [0x71d3a8]
mov ecx, dword [esi + 0x2cc]
mov edx, dword [ecx - 0xc]
add esi, 0x2cc
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x42e205
push edx
mov ecx, esi
call fcn.00401990
mov eax, dword [esi]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e210
sub eax, esi
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42e220
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x800
call fcn.005d903d
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x3c], edi
je 0x42edeb
mov esi, dword [esp + 0x1c]
push 0x636284
push esi
call fcn.005d9e00
add esp, 8
test eax, eax
je 0x42e2be
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx]
test ecx, ecx
je 0x42e280
mov eax, 1
jg 0x42e282
or eax, 0xffffffff
jmp 0x42e282
xor eax, eax
test eax, eax
mov eax, str.NSPlayer
je 0x42e290
mov eax, str.Novasoft_NetPlayer
mov edx, dword [esp + 0x48]
xor ecx, ecx
cmp dword [ebx + 0xa8], ecx
setne cl
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x30]
push ecx
push 0x636260
push eax
mov eax, dword [esp + 0x60]
push edx
push esi
push eax
push str.GET__s_HTTP_1.1_r_nHost:___s_:_d_r_nUser_Agent:__s__s_r_nRange:_bytes_I64d__r_nConnection:_Close_r_nFirst:__d_r_n
jmp 0x42e311
mov ecx, dword [esp + 0x18]
movzx ecx, byte [ecx]
test ecx, ecx
je 0x42e2d5
mov eax, 1
jg 0x42e2d7
or eax, 0xffffffff
jmp 0x42e2d7
xor eax, eax
test eax, eax
mov eax, str.NSPlayer
je 0x42e2e5
mov eax, str.Novasoft_NetPlayer
mov ecx, dword [esp + 0x48]
xor edx, edx
cmp dword [ebx + 0xa8], edx
setne dl
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push 0x636260
push eax
mov eax, dword [esp + 0x3c]
push eax
push esi
push ecx
push str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:__s__s_r_nRange:_bytes_I64d__r_nFirst:__d_r_n
push edi
call fcn.005dbdee
mov edx, dword [0x71d3a8]
mov eax, dword [edx + 0x2cc]
add esp, 0x28
cmp dword [eax - 0xc], 0
jle 0x42e3e1
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e335
mov ecx, dword [str.session_id:]
mov dword [eax], ecx
mov edx, dword [0x636184]
mov dword [eax + 4], edx
mov ecx, dword [0x636188]
mov dword [eax + 8], ecx
mov esi, dword [0x71d3a8]
mov eax, dword [esi + 0x2cc]
add esi, 0x2cc
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x42e386
push 0
mov ecx, esi
call fcn.00401990
mov eax, dword [esi]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e390
sub eax, esi
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42e3a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e3c0
mov dx, word [0x63617c]
mov edi, dword [esp + 0x3c]
mov word [eax], dx
mov cl, byte [0x63617e]
mov byte [eax + 2], cl
mov edx, dword [ebx + 0xb0]
cmp dword [edx - 0xc], 0
lea esi, [ebx + 0xb0]
jle 0x42e462
mov eax, edx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x42e410
push 0
mov ecx, esi
call fcn.00401990
mov eax, dword [esi]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e414
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42e422
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e441
mov cx, word [0x63617c]
mov edi, dword [esp + 0x3c]
mov word [eax], cx
mov dl, byte [0x63617e]
mov byte [eax + 2], dl
mov esi, dword [esp + 0x24]
test esi, esi
je 0x42e4f6
mov eax, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e470
sub eax, esi
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42e480
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e4a0
mov edx, dword [esp + 0x3c]
mov edi, edx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42e4b4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, edx
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e4d1
mov cx, word [0x63617c]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov word [eax], cx
mov dl, byte [0x63617e]
mov byte [eax + 2], dl
mov eax, edi
add eax, 0xffffffff
jmp 0x42e500
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x42e500
mov cx, word [0x63617c]
mov word [eax], cx
mov dl, byte [0x63617e]
mov byte [eax + 2], dl
mov eax, dword [esp + 0x4c]
push eax
call fcn.005d9100
add esp, 4
test esi, esi
je 0x42e537
push esi
call fcn.005d9100
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42e548
push eax
call fcn.005d9100
add esp, 4
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e550
mov ecx, dword [ebx + 0x60]
push 0
sub eax, edx
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.005d9100
add esp, 4
cmp dword [ebx + 0x40], 0
je 0x42e8da
lea esp, [esp]
cmp byte [ebx + 0x44], 0
jne 0x42e6f0
mov ecx, ebx
call fcn.0042c470
test eax, eax
je 0x42e686
push 0x400
lea edx, [esp + 0x1a8]
push edx
mov ecx, ebx
call fcn.0042c670
cmp eax, 0xffffffff
je 0x42e682
lea eax, [esp + 0x1a4]
push 0x20
push eax
call fcn.005dbd30
mov esi, eax
add esp, 8
test esi, esi
je 0x42e686
push esi
call fcn.005dc226
mov dword [ebx + 0xb8], eax
mov al, byte [esi + 1]
add esp, 4
cmp al, 0x32
je 0x42e6f0
cmp al, 0x33
jne 0x42e6ab
cmp byte [esi + 2], 0x30
jne 0x42e6ab
cmp byte [esi + 3], 0x32
jne 0x42e6ab
cmp dword [ebx + 0x40], 0
je 0x42e69a
mov esi, dword [esp + 0x20]
mov ecx, ebx
call fcn.0042c470
test eax, eax
je 0x42e67a
push 0x400
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, ebx
call fcn.0042c670
cmp eax, 0xffffffff
je 0x42e692
test eax, eax
je 0x42e696
push 9
lea edx, [esp + 0x1a8]
push str.Location:
push edx
call fcn.005dc22b
add esp, 0xc
test eax, eax
jne 0x42e67a
push esi
call fcn.005d9100
lea eax, [esp + 0x1b2]
push eax
call fcn.005ddfc6
add esp, 8
mov esi, eax
push esi
lea ecx, [ebx + 0x38]
call fcn.00401e30
cmp dword [ebx + 0x40], 0
jne 0x42e616
jmp 0x42e696
mov byte [ebx + 0x44], 1
cmp dword [ebx + 0x40], 0
jne 0x42e580
jmp 0x42e6f0
mov byte [ebx + 0x44], 1
mov dword [esp + 0x20], esi
mov dword [ebx + 0xa8], 1
mov byte [esp + 0x16], 1
jmp 0x42e6f0
cmp al, 0x34
jne 0x42e6f0
cmp byte [esi + 2], 0x30
jne 0x42e6f0
cmp byte [esi + 3], 0x33
jne 0x42e6f0
cmp dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 1
je 0x42e6f0
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8007
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebx + 0x40], 0
je 0x42e8da
lea ebx, [ebx]
cmp byte [esp + 0x16], 0
jne 0x42e8e5
mov ecx, ebx
call fcn.0042c470
test eax, eax
je 0x42e8cb
push 0x400
lea edx, [esp + 0x1a8]
push edx
mov ecx, ebx
call fcn.0042c670
cmp eax, 0xffffffff
je 0x42de0c
test eax, eax
je 0x42de10
push 0xe
lea eax, [esp + 0x1a8]
push str.Content_Length:
push eax
call fcn.005dc22b
add esp, 0xc
test eax, eax
jne 0x42e7db
xor ecx, ecx
mov dword [esp + 0x10], 1
xor edi, edi
lea esi, [esp + 0x1b3]
mov al, byte [esi]
cmp al, 0x20
je 0x42e77b
cmp al, 9
jne 0x42e780
add esi, 1
jmp 0x42e771
mov al, byte [esi]
cmp al, 0x2d
jne 0x42e78e
mov dword [esp + 0x10], 0xffffffff
cmp al, 0x30
jl 0x42e7bc
cmp byte [esi], 0x39
jg 0x42e7bc
push 0
push 0xa
push edi
push ecx
call fcn.005d9dc0
mov ecx, eax
movsx eax, byte [esi]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 0xffffffd0
adc edi, 0xffffffff
add esi, 1
cmp byte [esi], 0x30
jge 0x42e792
mov eax, dword [esp + 0x10]
push edi
cdq
push ecx
push edx
push eax
call fcn.005d9dc0
add eax, dword [ebx + 0x30]
adc edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x42e8cb
push 0xd
lea edx, [esp + 0x1a8]
push str.Content_Type:
push edx
call fcn.005dc22b
add esp, 0xc
test eax, eax
jne 0x42e80b
lea eax, [esp + 0x1b2]
push eax
lea ecx, [ebx + 0x14]
call fcn.00401e30
jmp 0x42e8cb
push 0xb
lea ecx, [esp + 0x1a8]
push str.Session_ID:
push ecx
call fcn.005dc22b
add esp, 0xc
test eax, eax
jne 0x42e844
mov ecx, dword [0x71d3a8]
lea edx, [esp + 0x1af]
push edx
add ecx, 0x2cc
call fcn.00401e30
jmp 0x42e8cb
push 3
lea eax, [esp + 0x1a8]
push 0x636140
push eax
call fcn.005dc22b
add esp, 0xc
test eax, eax
jne 0x42e8cb
lea ecx, [esp + 0x1a7]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401eb0
mov dword [esp + 0x5b8], 3
lea ecx, [esp + 0x40]
call fcn.00407e90
lea ecx, [esp + 0x40]
call fcn.00407f30
mov edx, dword [esp + 0x40]
mov ecx, dword [0x71d3a8]
push edx
add ecx, 0x214
call fcn.0041b750
test eax, eax
jle 0x42e8b7
mov eax, dword [esp + 0x40]
mov ecx, dword [0x71d3a8]
push eax
call fcn.004757e0
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.00401a50
cmp dword [ebx + 0x40], 0
jne 0x42e700
jmp 0x42de10
cmp byte [esp + 0x16], 0
je 0x42de10
mov ecx, dword [ebx + 0x60]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x2c]
push edx
call fcn.005d9100
mov eax, dword [esp + 0x34]
xor esi, esi
push eax
mov dword [esp + 0x34], esi
call fcn.005d9100
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x3c], esi
call fcn.005d9100
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], esi
call fcn.005d9100
add esp, 0x10
cmp byte [esp + 0x16], 0
mov dword [esp + 0x18], esi
je 0x42de10
mov esi, dword [esp + 0x20]
jmp 0x42dbe2
mov ecx, dword [ebx + 0x1c]
cmp ecx, dword [esp + 0x48]
ja 0x42e97f
jb 0x42e954
mov edx, dword [ebx + 0x18]
cmp edx, dword [esp + 0x44]
ja 0x42e97f
cmp byte [ebx + 0x45], 0
mov byte [ebx + 0x44], 1
je 0x42ecfc
lea esi, [ebx + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42eb85
mov esi, dword [esp + 0x10]
add esi, 1
mov dword [esp + 0x10], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xa
ja 0x42e9b5
cmp eax, 0x2746
je 0x42e9b5
cmp eax, 0x274d
je 0x42e9b5
cmp eax, 0x2748
je 0x42e9b5
cmp eax, 0x2751
jne 0x42eb85
mov eax, dword [ebx + 0x60]
xor esi, esi
push esi
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebx + 0x60]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x42e9e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42e9e6
mov edx, dword [ebx + 0x60]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call fcn.005d9100
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x34], esi
call fcn.005d9100
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x3c], esi
call fcn.005d9100
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], esi
call fcn.005d9100
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x2c], esi
call fcn.005d9100
add esp, 0x14
cmp dword [esp + 0x34], 5
mov dword [esp + 0x20], esi
mov dword [ebx + 0xa8], esi
jge 0x42eb81
add dword [esp + 0x34], 1
cmp dword [ebx + 0x4c], esi
je 0x42ea6c
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push esi
push esi
mov ecx, dword [eax + 0x20]
push 0x8006
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x42eda6
cmp dword [edi + 0xc], 0
jl 0x42ed99
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x42ed99
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x42ed2a
cmp eax, dword [esi]
jne 0x42ed2a
mov dword [esp + 0x10], esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42ed66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x24]
add ecx, 1
cmp ecx, 0x14
mov dword [esp + 0x24], ecx
ja 0x42eaf8
cmp eax, 0x2746
je 0x42eaf8
cmp eax, 0x274d
je 0x42eaf8
cmp eax, 0x2748
je 0x42eaf8
cmp eax, 0x2751
jne 0x42eb85
mov edx, dword [ebx + 0x60]
push edi
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebx + 0x60]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call esi
cmp eax, 0xffffffff
jne 0x42eb27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42eb27
mov ecx, dword [ebx + 0x60]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call fcn.005d9100
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x34], edi
call fcn.005d9100
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x3c], edi
call fcn.005d9100
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], edi
call fcn.005d9100
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], edi
call fcn.005d9100
add esp, 0x14
cmp dword [esp + 0x34], 5
mov dword [esp + 0x20], edi
mov dword [ebx + 0xa8], edi
jl 0x42edb6
mov byte [ebx + 0x44], 1
cmp byte [ebx + 0x45], 0
je 0x42ecfc
mov ecx, dword [0x71d3a8]
cmp dword [ecx + 0x25c], 1
jne 0x42ebbb
lea esi, [ebx + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42ecfc
cmp dword [ebx + 0x5c], 0
ja 0x42ec21
jb 0x42ebcc
cmp dword [ebx + 0x58], 0x7d000
jae 0x42ec21
lea esi, [ebx + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 8], 0
jne 0x42ecfc
cmp dword [ebx + 0x4c], 0
je 0x42ec18
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebx + 8], 1
jmp 0x42ecfc
mov ecx, ebx
call fcn.0042c380
mov ecx, dword [ebx + 0xa4]
cmp eax, ecx
jbe 0x42ec73
lea esi, [ebx + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebx + 0x45], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x4c], 0
mov dword [esp + 0x28], 0
je 0x42ecfc
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push 0
push 0
jmp 0x42eced
test ecx, ecx
jbe 0x42ecfc
test eax, eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
jge 0x42ec8d
fadd dword [0x632bd8]
test ecx, ecx
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
jge 0x42ec9f
fadd dword [0x632bd8]
fdivp st(1)
fmul qword [0x636138]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
fistp qword [esp + 0x4c]
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x28], esi
fldcw word [esp + 0x16]
je 0x42ecfc
cmp dword [ebx + 0x4c], 0
mov dword [esp + 0x28], esi
je 0x42ecfc
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push esi
push 1
mov ecx, dword [eax + 0x20]
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebx + 0xa4], 0
jne 0x42de45
mov edx, dword [ebx + 0xac]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42de45
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42de47
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
test eax, eax
mov dword [esp + 0x10], eax
je 0x42ede6
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
add ecx, 0x10
push ecx
call fcn.005d8f18
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ed7f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
push 0x1388
mov dword [ebx + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42dbb0
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [ebx + 0x38]
call fcn.00401bb0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42dbb0
add dword [esp + 0x34], 1
cmp dword [ebx + 0x4c], edi
je 0x42ea6c
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push edi
push edi
jmp 0x42ea5d
push 0x80004005
call fcn.00401470
jmp fcn.00418c70
cmp dword [ebx + 0x4c], 0
je 0x42ee15
call fcn.005bc35c
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [ebx + 0x60]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x42ee30
push eax
call fcn.005d9100
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42ee41
push eax
call fcn.005d9100
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ee52
push eax
call fcn.005d9100
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42ee63
push eax
call fcn.005d9100
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42ee74
push eax
call fcn.005d9100
add esp, 4
mov dword [ebx + 0xa8], 0
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.005d8d34
mov esp, ebp
pop ebp
ret