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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x42af9f
push eax
call fcn.00427000
add esp, 4
test al, al
je 0x42af9f
mov eax, dword [esi + 0x1e0]
cmp eax, 1
je 0x42af91
cmp eax, 5
jne 0x42af9f
cmp dword [esi + 0x1e4], 1
mov byte [esp + 0x13], 1
jne 0x42afa4
mov byte [esp + 0x13], 0
mov eax, dword [esi + 0x41c]
xor edi, edi
cmp dword [eax + 4], edi
mov dword [esp + 0x14], edi
jle 0x42b1e4
lea esp, [esp]
mov eax, dword [eax]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x42b2c2
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x15c]
mov edx, dword [eax + 0xc]
add edx, dword [ecx + 0xc]
cmp dword [esi + 0x2c], 0xffffffff
mov dword [esp + 0x18], edx
jne 0x42afec
mov dword [esi + 0x2c], edi
cmp byte [esp + 0x13], 0
je 0x42b097
mov eax, dword [eax]
test eax, eax
je 0x42b001
mov ebp, dword [eax]
jmp 0x42b003
xor ebp, ebp
mov eax, dword [ecx]
test eax, eax
je 0x42b00d
mov edi, dword [eax]
jmp 0x42b00f
xor edi, edi
test ebp, ebp
je 0x42b055
mov eax, dword [ebp + 8]
test eax, eax
je 0x42b2c2
push eax
call fcn.00427000
add esp, 4
test al, al
je 0x42b2c2
mov eax, dword [ebp + 0x1e0]
cmp eax, 1
je 0x42b043
cmp eax, 5
jne 0x42b2c2
cmp dword [ebp + 0x1e4], 1
jne 0x42b0d5
jmp 0x42b2c2
test edi, edi
je 0x42b0d5
mov eax, dword [edi + 8]
test eax, eax
je 0x42b2c2
push eax
call fcn.00427000
add esp, 4
test al, al
je 0x42b2c2
mov eax, dword [edi + 0x1e0]
cmp eax, 1
je 0x42b089
cmp eax, 5
jne 0x42b2c2
cmp dword [edi + 0x1e4], 1
jne 0x42b0d5
jmp 0x42b2c2
cmp dword [esp + 0x18], 0
ja 0x42b2c2
cmp dword [esi + 0x3c], 0
jne 0x42b0bb
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x20]
push ecx
push str.Connection__ld_hasnt_finished_name_resolve__cant_reuse_n
push edx
jmp 0x42b2ba
cmp dword [esi + 0xa0], 0xffffffff
je 0x42b2ac
cmp byte [esi + 0x10c], 0
jne 0x42b2ac
mov eax, dword [ebx + 0x30]
mov ecx, dword [esi + 0x30]
and eax, 0x400
and ecx, 0x400
cmp eax, ecx
jne 0x42b2c2
mov dl, byte [ebx + 0x10e]
cmp dl, byte [esi + 0x10e]
jne 0x42b2c2
cmp byte [ebx + 0x10f], 0
je 0x42b1ee
test eax, eax
jne 0x42b1ee
cmp byte [esi + 0x10f], al
je 0x42b14d
cmp byte [ebx + 0x118], al
je 0x42b14d
cmp byte [esi + 0x118], al
je 0x42b14d
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebx + 0x6c]
push eax
push ecx
call fcn.00432700
add esp, 8
test eax, eax
je 0x42b14d
mov edx, dword [ebx + 0x74]
cmp edx, dword [esi + 0x74]
je 0x42b1ee
cmp byte [esi + 0x10e], 0
je 0x42b2c2
mov eax, dword [ebx + 0x8c]
cmp eax, dword [esi + 0x8c]
jne 0x42b2c2
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx + 0x6c]
push ecx
push edx
call fcn.00432700
add esp, 8
test eax, eax
je 0x42b2c2
mov eax, dword [ebx + 0x74]
cmp eax, dword [esi + 0x74]
jne 0x42b2c2
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x18], 0
jne 0x42b2e8
mov eax, dword [esi + 0xa0]
push 0
push 0xffffffffffffffff
push eax
call fcn.0043dfb0
add esp, 0xc
test eax, eax
je 0x42b2e8
mov ebx, dword [esp + 0x14]
push ebx
push str.Connection__d_seems_to_be_dead__n
push edi
mov dword [esi], edi
call fcn.004261e0
push esi
call fcn.0042ae60
mov eax, dword [edi + 0x41c]
mov ecx, dword [eax]
add esp, 0x10
mov dword [ecx + ebx*4], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 0x40]
push ecx
lea edx, [ebx + 0x40]
push edx
call fcn.00432700
add esp, 8
test eax, eax
je 0x42b2c2
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebx + 0x5c]
push eax
push ecx
call fcn.00432700
add esp, 8
test eax, eax
je 0x42b2c2
mov dx, word [ebx + 0x78]
cmp dx, word [esi + 0x78]
jne 0x42b2c2
test dword [ebx + 0x30], 0x400
je 0x42b258
lea eax, [esi + 0xd8]
push eax
lea ecx, [ebx + 0xd8]
push ecx
call fcn.00426a00
add esp, 8
test al, al
je 0x42b2c2
cmp dword [esi + 0xac], 2
jne 0x42b2c2
mov eax, dword [ebx + 0x30]
test al, 0x10
jne 0x42b278
test al, 4
je 0x42b190
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x84b4], 8
jne 0x42b194
mov edx, dword [esi + 0x7c]
mov eax, dword [ebx + 0x7c]
push edx
push eax
call fcn.00432700
add esp, 8
test eax, eax
je 0x42b2c2
mov ecx, dword [esi + 0x80]
mov edx, dword [ebx + 0x80]
push ecx
push edx
call fcn.00432700
add esp, 8
test eax, eax
jne 0x42b190
jmp 0x42b2c2
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push ecx
call fcn.004261e0
add esp, 0xc
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x41c]
inc edi
cmp edi, dword [eax + 4]
mov dword [esp + 0x14], edi
jl 0x42afc0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x24]
pop edi
mov byte [esi + 0x28], 1
mov dword [edx], esi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret