Function at 0x64040210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov dword [esp + 0x3c], 0
lea esi, [ecx + 0x78]
mov eax, dword [esi]
push edi
mov dword [esp + 0x24], ecx
cmp dword [eax + 4], 0
jne 0x6404023b
push 0x200
mov ecx, esi
call dword [0x640b0d04]
mov edi, dword [0x640b0608]
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x14], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push 0
push 1
push eax
call dword [0x640b02d8]
mov ebx, edx
mov ebp, eax
or eax, ebx
je 0x640405f1
mov eax, ebp
and eax, ebx
cmp eax, 0xffffffff
je 0x640405d8
push dword [esp + 0x14]
mov ecx, esi
call dword [0x640b0cf8]
add dword [esp + 0x18], 1
adc dword [esp + 0x1c], 0
cmp byte [esp + 0x14], 0xa
jne 0x640402fd
push 0x640b76a8
mov ecx, esi
call edi
test al, al
jne 0x640402c7
push 0x640b76ac
mov ecx, esi
call edi
test al, al
je 0x640402cc
mov byte [esp + 0x13], 1
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x640402e1
push 0x640b45d0
mov ecx, esi
call edi
test al, al
jne 0x64040318
mov eax, dword [esi]
cmp dword [eax + 4], 1
jne 0x640402f6
push 0x640b66ec
mov ecx, esi
call edi
test al, al
jne 0x64040318
cmp byte [esp + 0x13], 0
jne 0x64040318
test ebx, ebx
jl 0x640405f1
jg 0x64040264
test ebp, ebp
je 0x640405f1
jmp 0x64040264
mov ebp, dword [esp + 0x24]
mov ecx, ebp
push esi
call fcn.6403f890
mov ecx, esi
mov dword [ebp + 0x3c], 3
call dword [0x640b0264]
lea ecx, [ebp + 0x30]
call fcn.6403e560
lea ecx, [esp + 0x2c]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
call dword [0x640b0df8]
mov ebx, dword [0x640b0d0c]
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push 0x640b5e24
mov esi, eax
call ebx
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0x30]
call fcn.6403e6e0
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call dword [0x640b0898]
push 0
push str.chunked
mov ecx, eax
call dword [0x640b033c]
cmp eax, 0xffffffff
lea ecx, [esp + 0x24]
setne al
mov byte [ebp + 0x7c], al
call dword [0x640b0df0]
lea ecx, [esp + 0x28]
call dword [0x640b0df0]
lea ecx, [esp + 0x20]
call dword [0x640b0df0]
lea ecx, [esp + 0x2c]
call dword [0x640b0df0]
lea ecx, [esp + 0x2c]
call dword [0x640b0df8]
push 0xffffffffffffffff
push 0x640b61d8
lea ecx, [esp + 0x28]
mov esi, eax
call ebx
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [ebp + 0x30]
call fcn.6403e6e0
lea ecx, [esp + 0x20]
call dword [0x640b0df0]
lea ecx, [esp + 0x2c]
call dword [0x640b0df0]
lea eax, [esp + 0x40]
mov ebx, 1
push eax
lea ecx, [esp + 0x50]
call dword [0x640b0340]
push 0
push 0x640b35dc
mov ecx, eax
call dword [0x640b033c]
cmp eax, 0xffffffff
jne 0x640404f2
lea ecx, [esp + 0x3c]
call dword [0x640b0df8]
push 0xffffffffffffffff
push str.proxy_connection
lea ecx, [esp + 0x2c]
mov esi, eax
call dword [0x640b0d0c]
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0x30]
call fcn.6403e6e0
lea ecx, [esp + 0x34]
mov ebx, 0x1f
push ecx
mov ecx, eax
call dword [0x640b0898]
push 0
push 0x640b35dc
mov ecx, eax
call dword [0x640b033c]
cmp eax, 0xffffffff
jne 0x640404f2
cmp dword [ebp + 0x50], 1
jne 0x640404ee
cmp dword [ebp + 0x54], 0
jne 0x640404ee
mov eax, dword [esp + 0x4c]
cmp dword [eax + 4], 0
jne 0x640404ee
lea ecx, [esp + 0x30]
call dword [0x640b0df8]
push 0xffffffffffffffff
push str.proxy_connection
lea ecx, [esp + 0x28]
mov esi, eax
call dword [0x640b0d0c]
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0x30]
call fcn.6403e6e0
lea ecx, [esp + 0x2c]
mov ebx, 0x1ff
push ecx
mov ecx, eax
call dword [0x640b0898]
push 0
push str.keep_alive
mov ecx, eax
call dword [0x640b033c]
cmp eax, 0xffffffff
je 0x640404f2
xor al, al
jmp 0x640404f4
mov al, 1
mov byte [ebp + 0x7d], al
test ebx, 0x100
je 0x6404050f
lea ecx, [esp + 0x2c]
and ebx, 0xfffffeff
call dword [0x640b0df0]
test bl, bl
jns 0x64040523
lea ecx, [esp + 0x28]
and ebx, 0xffffff7f
call dword [0x640b0df0]
test bl, 0x40
je 0x64040535
lea ecx, [esp + 0x20]
and ebx, 0xffffffbf
call dword [0x640b0df0]
test bl, 0x20
je 0x64040547
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call dword [0x640b0df0]
test bl, 0x10
je 0x64040559
lea ecx, [esp + 0x34]
and ebx, 0xffffffef
call dword [0x640b0df0]
test bl, 8
je 0x6404056b
lea ecx, [esp + 0x38]
and ebx, 0xfffffff7
call dword [0x640b0df0]
test bl, 4
je 0x6404057d
lea ecx, [esp + 0x24]
and ebx, 0xfffffffb
call dword [0x640b0df0]
test bl, 2
je 0x6404058c
lea ecx, [esp + 0x3c]
call dword [0x640b0df0]
lea ecx, [esp + 0x40]
call dword [0x640b0df0]
cmp byte [ebp + 0xcc], 0
je 0x640405e7
mov ecx, ebp
call fcn.6403f6f0
test al, al
je 0x640405e7
cmp dword [ebp + 0xf8], 0
jne 0x640405c3
push 0x38
call fcn.640ae2b5
add esp, 4
mov dword [ebp + 0xf8], eax
mov ecx, ebp
call fcn.6403f670
test eax, eax
je 0x640405e7
lea ecx, [esp + 0x4c]
call dword [0x640b0df0]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x38
ret 4
lea ecx, [esp + 0x4c]
call dword [0x640b0df0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4