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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor edi, edi
mov byte [esp + 0x14], 0
mov eax, dword [ebp + 0x2c8]
xor esi, esi
mov dword [esp + 0x1c], edi
test byte [eax + 0x40], 3
je 0x5251e8
mov eax, dword [ebp + 0x29c]
and eax, 0x2001
cmp eax, 0x2001
je 0x5251e8
push dword [ebx + 0x78]
call fcn.0051c0a0
add esp, 4
test al, al
je 0x5251e8
cmp dword [ebx + 0x82c], 3
mov eax, 2
cmovge esi, eax
test esi, esi
setne al
test byte [ebx + 0xce0], 0x28
mov byte [esp + 0x34], al
je 0x52520a
mov eax, dword [ebp + 0x2c8]
test byte [eax + 0x40], 3
je 0x52520a
mov al, 1
jmp 0x52520c
xor al, al
test dword [ebp + 0x29c], 0x200
mov byte [esp + 0x13], al
je 0x525238
test byte [ebx + 0xcf0], 0x28
je 0x525238
mov eax, dword [ebp + 0x2c8]
test byte [eax + 0x40], 3
je 0x525238
mov byte [esp + 0x12], 1
jmp 0x52523e
xor al, al
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x3c]
mov byte [eax], 0
mov eax, dword [esp + 0x40]
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0xc40]
push ebp
call fcn.00523280
mov edi, eax
add esp, 0xc
mov dword [esp + 0x28], edi
test edi, edi
je 0x5259ec
cmp dword [edi], 2
mov eax, str.serially
mov ecx, str.can_multiplex
cmovne ecx, eax
push ecx
push edi
push dword [esp + 0x2c]
push str.Found_bundle_for_host__s:__p___s__n
push ebx
call fcn.0052abb0
add esp, 0x14
test esi, esi
je 0x52532a
mov eax, dword [edi]
test eax, eax
jne 0x5252e7
test dword [ebx + 0xa9c], 0x20000
je 0x5252d1
push str.Server_doesnt_support_multiplex_yet__wait_n
push ebx
call fcn.0052abb0
mov eax, dword [esp + 0x48]
push ebx
mov byte [eax], 1
call fcn.005237b0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Server_doesnt_support_multiplex__yet__n
push ebx
call fcn.0052abb0
add esp, 8
xor al, al
mov byte [esp + 0x34], al
mov eax, dword [edi]
cmp eax, 2
jne 0x52530f
push dword [ebx + 0x78]
call fcn.0051c0a0
add esp, 4
test al, al
jne 0x52530f
push str.Could_multiplex__but_not_asked_to__n
push ebx
call fcn.0052abb0
add esp, 8
xor al, al
mov byte [esp + 0x34], al
cmp dword [edi], 0xffffffff
jne 0x52532a
push str.Can_not_multiplex__even_if_we_wanted_to__n
push ebx
call fcn.0052abb0
add esp, 8
xor cl, cl
mov byte [esp + 0x34], cl
jmp 0x52532e
mov cl, byte [esp + 0x34]
mov edi, dword [edi + 8]
mov dword [esp + 0x18], edi
test edi, edi
je 0x5259ec
mov edx, 1
mov eax, dword [esp + 0x18]
mov edi, dword [edi]
mov eax, dword [eax + 8]
test byte [edi + 0x2a0], 1
mov dword [esp + 0x18], eax
jne 0x52587d
cmp dword [edi + 0x35c], 0
je 0x525375
mov eax, dword [esp + 0x28]
cmp dword [eax], 2
jne 0x525375
mov eax, 1
jmp 0x525377
xor eax, eax
mov dword [esp + 0x20], eax
test cl, cl
je 0x525398
mov ebx, dword [edi + 0x29c]
test ebx, 0x2000
je 0x5253e0
test bl, 1
jne 0x525879
jmp 0x5253e0
test eax, eax
jne 0x52587d
cmp byte [edi + 0x5c], al
jne 0x5253c4
push dword [edi + 0x48]
push str.Connection__ld_is_still_name_resolving__cant_reuse_n
push ebx
call fcn.0052abb0
mov cl, byte [esp + 0x40]
add esp, 0xc
mov edx, 1
jmp 0x52587d
cmp dword [edi + 0x1c0], 0xffffffff
je 0x5259a7
mov ebx, dword [edi + 0x29c]
test bl, 1
jne 0x5259a3
mov ecx, dword [ebp + 0x56c]
mov eax, dword [edi + 0x56c]
test ecx, ecx
je 0x52543b
test eax, eax
je 0x525875
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x525418
test dl, dl
je 0x525414
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x525418
add ecx, 2
add eax, 2
test dl, dl
jne 0x5253f8
xor eax, eax
jmp 0x52541d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov eax, dword [edi + 0x570]
xor eax, dword [ebp + 0x570]
test al, 1
jne 0x5257ec
jmp 0x525443
test eax, eax
jne 0x525875
mov edx, dword [ebp + 0x2c8]
mov ecx, dword [edi + 0x2c8]
mov eax, dword [edx + 0x44]
xor eax, dword [ecx + 0x44]
test al, 1
je 0x52547a
push dword [ecx + 0x40]
call fcn.005282e0
add esp, 4
cmp eax, dword [edx + 0x40]
jne 0x5257ec
test byte [edi + 0x570], 2
je 0x5257ec
mov ecx, dword [ebp + 0x29c]
mov eax, ecx
xor eax, ebx
test al, 0x40
jne 0x5257ec
shr ecx, 7
shr ebx, 7
and ecx, 1
and ebx, 1
cmp ecx, ebx
jne 0x5257ec
test ecx, ecx
je 0x5254e4
mov eax, dword [ebp + 0xd0]
cmp eax, dword [edi + 0xd0]
jne 0x5257ec
mov eax, dword [ebp + 0xcc]
cmp eax, dword [edi + 0xcc]
jne 0x5257ec
push dword [edi + 0xc4]
push dword [ebp + 0xc4]
call fcn.0052e330
add esp, 8
test eax, eax
je 0x5257ec
mov ecx, dword [edi + 0x29c]
mov eax, ecx
mov edx, dword [ebp + 0x29c]
xor eax, edx
test al, 8
jne 0x5257ec
xor ecx, edx
test cl, 0x10
jne 0x5257ec
test dl, 0x40
je 0x5255ce
mov eax, dword [ebp + 0xf0]
cmp eax, dword [edi + 0xf0]
jne 0x5257ec
mov eax, dword [ebp + 0xec]
cmp eax, dword [edi + 0xec]
jne 0x5257ec
push dword [edi + 0xe4]
push dword [ebp + 0xe4]
call fcn.0052e330
add esp, 8
test eax, eax
je 0x5257ec
mov eax, dword [edi + 0x29c]
xor eax, dword [ebp + 0x29c]
test eax, 0x8000
jne 0x5257ec
cmp dword [ebp + 0xf0], 2
jne 0x5255ce
mov eax, dword [ebp + 0x2c8]
test byte [eax + 0x44], 1
je 0x5255a3
lea eax, [edi + 0x270]
push eax
lea eax, [ebp + 0x270]
push eax
call fcn.005245c0
add esp, 8
test al, al
je 0x5257ec
cmp dword [edi + 0x224], 2
jmp 0x5255c8
lea eax, [edi + 0x248]
push eax
lea eax, [ebp + 0x248]
push eax
call fcn.005245c0
add esp, 8
test al, al
je 0x5257ec
cmp dword [edi + 0x204], 2
jne 0x5257ec
mov cl, byte [esp + 0x34]
test cl, cl
jne 0x5255df
cmp dword [edi], 0
jne 0x5257f0
cmp dword [edi + 0x35c], 0
je 0x5255fd
mov eax, dword [edi]
test eax, eax
je 0x5255fd
mov ecx, dword [ebp]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x78]
jne 0x5257ec
mov ecx, dword [ebp + 0x554]
test ecx, ecx
jne 0x525610
cmp word [ebp + 0x558], cx
je 0x525675
mov ax, word [edi + 0x558]
cmp ax, word [ebp + 0x558]
jne 0x5257ec
mov eax, dword [edi + 0x55c]
cmp eax, dword [ebp + 0x55c]
jne 0x5257ec
test ecx, ecx
je 0x525675
mov eax, dword [edi + 0x554]
test eax, eax
je 0x5257ec
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x525668
test dl, dl
je 0x525664
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x525668
add eax, 2
add ecx, 2
test dl, dl
jne 0x525648
xor eax, eax
jmp 0x52566d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov esi, dword [ebp + 0x2c8]
mov ebx, dword [esi + 0x44]
test bl, bl
js 0x5256fd
mov ecx, dword [edi + 0x170]
mov eax, dword [ebp + 0x170]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5256b0
test dl, dl
je 0x5256ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5256b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x525690
xor eax, eax
jmp 0x5256b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov ecx, dword [edi + 0x174]
mov eax, dword [ebp + 0x174]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5256f0
test dl, dl
je 0x5256ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5256f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5256d0
xor eax, eax
jmp 0x5256f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov eax, dword [ebp + 0x29c]
test al, 0x40
je 0x525717
test bl, 1
jne 0x525717
test eax, 0x8000
je 0x5257fa
mov eax, dword [edi + 0x2c8]
push dword [eax]
push dword [esi]
call fcn.0052e360
add esp, 8
test eax, eax
jne 0x52575a
mov eax, dword [edi + 0x2c8]
push dword [eax + 0x40]
call fcn.005282e0
mov ecx, dword [ebp + 0x2c8]
add esp, 4
cmp eax, dword [ecx + 0x40]
jne 0x5257ec
test byte [edi + 0x570], 2
je 0x5257ec
test byte [ebp + 0x29c], 8
je 0x52577b
push dword [edi + 0xb4]
push dword [ebp + 0xb4]
call fcn.0052e360
add esp, 8
test eax, eax
je 0x5257ec
test byte [ebp + 0x29c], 0x10
je 0x525792
mov eax, dword [ebp + 0x104]
cmp eax, dword [edi + 0x104]
jne 0x5257ec
push dword [edi + 0x9c]
push dword [ebp + 0x9c]
call fcn.0052e360
add esp, 8
test eax, eax
je 0x5257ec
mov eax, dword [ebp + 0x100]
cmp eax, dword [edi + 0x100]
jne 0x5257ec
mov eax, dword [ebp + 0x2c8]
test byte [eax + 0x44], 1
je 0x5257fa
lea eax, [edi + 0x248]
push eax
lea eax, [ebp + 0x248]
push eax
call fcn.005245c0
add esp, 8
test al, al
je 0x5257ec
cmp dword [edi + 0x204], 2
je 0x5257fa
mov byte [esp + 0x14], 1
mov cl, byte [esp + 0x34]
mov edx, 1
jmp 0x525879
mov bl, byte [esp + 0x13]
test bl, bl
je 0x52588e
mov ecx, dword [edi + 0x170]
mov eax, dword [ebp + 0x170]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x525832
test dl, dl
je 0x52582e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x525832
add eax, 2
add ecx, 2
test dl, dl
jne 0x525812
xor eax, eax
jmp 0x525837
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov ecx, dword [edi + 0x174]
mov eax, dword [ebp + 0x174]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x525867
test dl, dl
je 0x525863
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x525867
add eax, 2
add ecx, 2
test dl, dl
jne 0x525847
xor eax, eax
jmp 0x52586c
sbb eax, eax
or eax, 1
test eax, eax
je 0x52589b
mov edx, 1
mov cl, byte [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x525342
jmp 0x525971
cmp dword [edi + 0x36c], 0
jne 0x5257ec
mov al, byte [esp + 0x12]
test al, al
je 0x525994
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x5257ec
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x5257ec
mov ecx, dword [ebp + 0xf4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x5258f0
test dl, dl
je 0x5258ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x5258f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x5258d0
xor eax, eax
jmp 0x5258f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5257ec
mov eax, dword [ebp + 0xf8]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x525923
test cl, cl
je 0x52591f
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x525923
add eax, 2
add esi, 2
test cl, cl
jne 0x525903
xor eax, eax
jmp 0x525928
sbb eax, eax
or eax, 1
test eax, eax
jne 0x525870
mov al, byte [esp + 0x12]
test bl, bl
jne 0x525940
test al, al
je 0x5259c9
mov dword [esp + 0x1c], edi
test bl, bl
je 0x525951
cmp dword [edi + 0x36c], 0
jne 0x525966
test al, al
je 0x5257ec
cmp dword [edi + 0x370], 0
je 0x525870
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov byte [eax], 1
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x5259ec
push ebx
mov dword [edi], ebx
call fcn.005237b0
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [edi + 0x370], 0
jne 0x5257ec
jmp 0x525934
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
test byte [edi + 0x29c], 1
push dword [edi + 0x48]
movzx eax, al
cmove eax, edx
mov dword [esp + 0x18], eax
push str.Connection__ld_isnt_open_enough__cant_reuse_n
jmp 0x5253ad
mov al, byte [esp + 0x34]
mov ebx, dword [esp + 0x30]
test al, al
je 0x525975
cmp dword [esp + 0x20], 0
je 0x525975
push str.Multiplexed_connection_found__n
push ebx
call fcn.0052abb0
add esp, 8
jmp 0x525975
push ebx
call fcn.005237b0
add esp, 4
cmp byte [esp + 0x14], 0
je 0x525a1d
test dword [ebx + 0xa9c], 0x20000
je 0x525a1d
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push ebx
call fcn.0052abb0
mov eax, dword [esp + 0x48]
add esp, 8
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret