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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
mov eax, dword [edi + 0x1e0]
test byte [eax + 0x44], 3
je 0x4129d8
cmp byte [edi + 0x1ce], 0
je 0x4129ba
cmp byte [edi + 0x1c6], 0
jne 0x4129d8
push dword [ebx + 0x70]
call fcn.00407e00
add esp, 4
test al, al
je 0x4129d8
cmp byte [ebx + 0xc2c], 3
mov eax, 2
cmovae esi, eax
test esi, esi
setne byte [esp + 0x24]
test byte [ebx + 0x94c], 0x28
je 0x4129f9
mov eax, dword [edi + 0x1e0]
mov byte [esp + 0x12], 1
test byte [eax + 0x44], 3
jne 0x4129fe
mov byte [esp + 0x12], 0
cmp byte [edi + 0x1c2], 0
je 0x412a23
test byte [ebx + 0x95c], 0x28
je 0x412a23
mov eax, dword [edi + 0x1e0]
test byte [eax + 0x44], 3
je 0x412a23
mov byte [esp + 0x28], 1
jmp 0x412a29
xor al, al
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x30]
mov byte [eax], 0
mov eax, dword [esp + 0x34]
mov byte [eax], 0
push dword [ebx + 0x878]
push edi
push ebx
call fcn.004101c0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x4130f6
cmp dword [eax], 2
mov edx, str.serially
mov ecx, str.can_multiplex
cmovne ecx, edx
push ecx
push eax
push str.Found_bundle_for_host:__p___s_
push ebx
call fcn.00417c60
add esp, 0x10
test esi, esi
mov esi, dword [esp + 0x18]
je 0x412b11
cmp dword [esi], ebp
jne 0x412ad2
cmp byte [ebx + 0x6cf], 0
je 0x412abf
push str.Server_doesnt_support_multiplex_yet__wait
push ebx
call fcn.00417c60
mov eax, dword [esp + 0x3c]
add esp, 8
mov byte [eax], 1
cmp dword [ebx + 0x78], ebp
je 0x41318b
push 5
push ebx
call fcn.0041d170
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.Server_doesnt_support_multiplex__yet_
push ebx
call fcn.00417c60
add esp, 8
mov byte [esp + 0x24], 0
cmp dword [esi], 2
jne 0x412af9
push dword [ebx + 0x70]
call fcn.00407e00
add esp, 4
test al, al
jne 0x412af9
push str.Could_multiplex__but_not_asked_to
push ebx
call fcn.00417c60
add esp, 8
mov byte [esp + 0x24], 0
cmp dword [esi], 0xffffffff
jne 0x412b11
push str.Can_not_multiplex__even_if_we_wanted_to
push ebx
call fcn.00417c60
add esp, 8
mov byte [esp + 0x24], 0
mov esi, dword [esi + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4130f6
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov esi, dword [esi]
mov eax, dword [eax + 8]
cmp byte [esi + 0x44c], 0
mov dword [esp + 0x1c], eax
jne 0x412ba0
cmp byte [esi + 0x1c6], 0
jne 0x412ba0
push ebx
push esi
call fcn.00415440
add esp, 8
test al, al
je 0x412b5a
push 1
push esi
push ebx
call fcn.00413700
jmp 0x412b9d
mov al, byte [ebx + 0x4b0]
test al, al
je 0x412b6c
cmp al, byte [esi + 0x44a]
jne 0x412ba0
mov eax, dword [esp + 0x18]
cmp dword [eax], 2
jne 0x412b7b
mov ebp, dword [esi + 0x240]
cmp byte [esp + 0x24], 0
jne 0x412bd3
test ebp, ebp
jne 0x412ba0
cmp byte [esi + 0xac], 0
jne 0x412bb5
push dword [esi + 0x38]
push str.Connection__ld_is_still_name_resolving__cant_reuse
push ebx
call fcn.00417c60
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x412b20
jmp 0x4130f6
push 0
push esi
call fcn.00417950
add esp, 8
test al, al
jne 0x412bd3
push dword [esi + 0x38]
mov byte [esp + 0x17], 1
push str.Connection__ld_isnt_open_enough__cant_reuse
jmp 0x412b97
mov ecx, dword [edi + 0x41c]
mov eax, dword [esi + 0x41c]
test ecx, ecx
je 0x412c1e
test eax, eax
je 0x412ba0
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x412c07
test dl, dl
je 0x412c03
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x412c07
add ecx, 2
add eax, 2
test dl, dl
jne 0x412be7
xor eax, eax
jmp 0x412c0c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412ba0
mov al, byte [edi + 0x1db]
cmp al, byte [esi + 0x1db]
jmp 0x412c20
test eax, eax
jne 0x412ba0
mov ecx, dword [esi + 0x1e0]
mov edx, dword [edi + 0x1e0]
mov eax, dword [ecx + 0x4c]
xor eax, dword [edx + 0x4c]
test al, 1
je 0x412c55
mov eax, dword [ecx + 0x48]
cmp eax, dword [edx + 0x44]
jne 0x412ba0
cmp byte [esi + 0x1dc], 0
je 0x412ba0
mov al, byte [edi + 0x1c0]
cmp al, byte [esi + 0x1c0]
jne 0x412ba0
mov al, byte [edi + 0x1c1]
cmp al, byte [esi + 0x1c1]
jne 0x412ba0
test al, al
je 0x412ce9
mov al, byte [edi + 0x80]
cmp al, byte [esi + 0x80]
jne 0x412ba0
mov eax, dword [edi + 0x7c]
cmp eax, dword [esi + 0x7c]
jne 0x412ba0
push dword [esi + 0x74]
push dword [edi + 0x74]
call fcn.0041cad0
add esp, 8
test eax, eax
je 0x412ba0
push dword [esi + 0x84]
push dword [edi + 0x84]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
push dword [esi + 0x88]
push dword [edi + 0x88]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
mov al, byte [edi + 0x1c9]
cmp al, byte [esi + 0x1c9]
jne 0x412ba0
mov al, byte [edi + 0x1ca]
cmp al, byte [esi + 0x1ca]
jne 0x412ba0
cmp byte [edi + 0x1c0], 0
je 0x412dbd
mov al, byte [edi + 0xa0]
cmp al, byte [esi + 0xa0]
jne 0x412ba0
mov eax, dword [edi + 0x9c]
cmp eax, dword [esi + 0x9c]
jne 0x412ba0
push dword [esi + 0x94]
push dword [edi + 0x94]
call fcn.0041cad0
add esp, 8
test eax, eax
je 0x412ba0
mov al, byte [edi + 0x1c3]
cmp al, byte [esi + 0x1c3]
jne 0x412ba0
cmp byte [edi + 0xa0], 2
jne 0x412dbd
mov eax, dword [edi + 0x1e0]
test byte [eax + 0x4c], 1
je 0x412d9f
lea eax, [esi + 0x180]
push eax
lea eax, [edi + 0x180]
push eax
call fcn.00411e40
add esp, 8
test al, al
je 0x412ba0
lea eax, [esi + 0x140]
push eax
lea eax, [edi + 0x140]
push eax
call fcn.00411e40
add esp, 8
test al, al
je 0x412ba0
cmp byte [esp + 0x24], 0
jne 0x412dcd
cmp dword [esi + 0x240], 0
jmp 0x412de4
cmp dword [esi + 0x240], 0
je 0x412dea
mov eax, dword [esi + 0x234]
mov eax, dword [eax]
mov eax, dword [eax + 0x70]
cmp eax, dword [ebx + 0x70]
jne 0x412ba0
mov ecx, dword [edi + 0x420]
test ecx, ecx
jne 0x412dfd
cmp word [edi + 0x444], cx
je 0x412e64
mov ax, word [esi + 0x444]
cmp ax, word [edi + 0x444]
jne 0x412ba0
mov ax, word [esi + 0x424]
cmp ax, word [edi + 0x424]
jne 0x412ba0
test ecx, ecx
je 0x412e64
mov eax, dword [esi + 0x420]
test eax, eax
je 0x412ba0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412e57
test dl, dl
je 0x412e53
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412e57
add eax, 2
add ecx, 2
test dl, dl
jne 0x412e37
xor eax, eax
jmp 0x412e5c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412ba0
mov eax, dword [edi + 0x1e0]
test byte [eax + 0x4c], 0x80
jne 0x412ee0
push dword [esi + 0xdc]
push dword [edi + 0xdc]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
push dword [esi + 0xe0]
push dword [edi + 0xe0]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
push dword [esi + 0xe8]
push dword [edi + 0xe8]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
push dword [esi + 0xec]
push dword [edi + 0xec]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
mov ecx, dword [edi + 0x1e0]
test byte [ecx + 0x44], 3
je 0x412f14
mov al, byte [esi + 0x44b]
cmp al, 0x14
jb 0x412f03
cmp byte [ebx + 0xc2c], 3
jb 0x412ba0
cmp al, 0x1e
jb 0x412f14
cmp byte [ebx + 0xc2c], 0x1e
jb 0x412ba0
cmp dword [ecx + 0x48], 0x30
je 0x412ba0
test byte [ecx + 0x4c], 1
jne 0x412f3a
cmp byte [edi + 0x1c0], 0
je 0x412f3a
cmp byte [edi + 0x1c3], 0
je 0x413001
mov eax, dword [esi + 0x1e0]
push dword [eax]
push dword [ecx]
call fcn.0041cad0
add esp, 8
test eax, eax
jne 0x412f75
mov eax, dword [esi + 0x1e0]
mov ecx, dword [edi + 0x1e0]
mov eax, dword [eax + 0x48]
cmp eax, dword [ecx + 0x44]
jne 0x412ba0
cmp byte [esi + 0x1dc], 0
je 0x412ba0
cmp byte [edi + 0x1c9], 0
je 0x412f94
push dword [esi + 0x64]
push dword [edi + 0x64]
call fcn.0041cad0
add esp, 8
test eax, eax
je 0x412ba0
cmp byte [edi + 0x1ca], 0
je 0x412faf
mov eax, dword [edi + 0x43c]
cmp eax, dword [esi + 0x43c]
jne 0x412ba0
push dword [esi + 0x4c]
push dword [edi + 0x4c]
call fcn.0041cad0
add esp, 8
test eax, eax
je 0x412ba0
mov eax, dword [edi + 0x438]
cmp eax, dword [esi + 0x438]
jne 0x412ba0
mov eax, dword [edi + 0x1e0]
test byte [eax + 0x4c], 1
je 0x413001
lea eax, [esi + 0x140]
push eax
lea eax, [edi + 0x140]
push eax
call fcn.00411e40
add esp, 8
test al, al
je 0x412ba0
cmp byte [esp + 0x12], 0
je 0x413050
push dword [esi + 0xdc]
push dword [edi + 0xdc]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x413038
push dword [esi + 0xe0]
push dword [edi + 0xe0]
call fcn.0041ca70
add esp, 8
test eax, eax
je 0x41305d
cmp dword [esi + 0x250], 0
jne 0x412ba0
mov ebp, esi
mov dword [esp + 0x14], ebp
jmp 0x412ba4
cmp dword [esi + 0x250], 0
jne 0x412ba0
mov al, byte [esp + 0x28]
test al, al
je 0x413125
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x412ba0
cmp dword [esi + 0xa8], 0
je 0x412ba0
push eax
push dword [edi + 0xa4]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
push dword [esi + 0xa8]
push dword [edi + 0xa8]
call fcn.0041ca70
add esp, 8
test eax, eax
jne 0x412ba0
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x4130c7
test al, al
je 0x413134
mov ebp, esi
mov dword [esp + 0x14], ebp
test cl, cl
je 0x4130da
cmp dword [esi + 0x250], 0
jne 0x4130ef
test al, al
je 0x412ba4
cmp dword [esi + 0x254], 0
je 0x412ba4
mov eax, dword [esp + 0x30]
mov byte [eax], 1
test ebp, ebp
je 0x413155
push ebp
push ebx
call fcn.00407880
add esp, 8
cmp dword [ebx + 0x78], 0
je 0x413115
push 5
push ebx
call fcn.0041d170
add esp, 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebp
mov al, 1
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x254], 0
jne 0x412ba0
jmp 0x4130bb
cmp byte [esp + 0x24], 0
je 0x413151
test ebp, ebp
mov ebp, esi
je 0x4130f6
push str.Multiplexed_connection_found
push ebx
call fcn.00417c60
add esp, 8
jmp 0x4130f6
mov ebp, esi
jmp 0x4130f6
cmp dword [ebx + 0x78], 0
je 0x413166
push 5
push ebx
call fcn.0041d170
add esp, 8
cmp byte [esp + 0x13], 0
je 0x41318b
cmp byte [ebx + 0x6cf], 0
je 0x41318b
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set
push ebx
call fcn.00417c60
mov eax, dword [esp + 0x3c]
add esp, 8
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret