Function at 0x10010d40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xd8], edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xd0], edi
test byte [esi + 0xc0], 0x14
jne 0x10010de7
mov eax, dword [esi + 0x24]
add eax, 0x40
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x68]
mov bl, byte [eax + 8]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [eax + 0x10]
add eax, 0x40
push eax
mov dword [ebp - 0xd4], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, 2
je 0x10010e10
test byte [ebp - 0xd4], 1
mov edx, 4
jne 0x10010dc8
test byte [esi + 0xc0], dl
jne 0x10010dcd
cmp dword [esi], 3
jne 0x10010dcd
mov edx, 5
push 0
push 0
push dword [ebp - 0xb0]
mov ecx, esi
push dword [ebp - 0xdc]
call fcn.10010570
add esp, 0x10
test edi, edi
je 0x10010dfa
push edi
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x8007139f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x128], 0
je 0x10010e39
test byte [0x10059ab8], 4
je 0x10010e39
push str.Path__Binding____void__0_
push str.C:__w1_s_srccoreconnection.c
push 0x743
call fcn.1003e120
add esp, 0xc
test byte [esi + 0xc2], 0x10
lea ebx, [esi + 0x130]
jne 0x100110a5
mov ax, word [ebp + 8]
mov word [ebx], ax
mov byte [ebp - 0xc9], 0
call dword [sym.imp.IPHLPAPI.DLL_GetCurrentThreadCompartmentId]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ecx + 0x1c]
cmp eax, ecx
je 0x10010f09
push ecx
call dword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
mov edi, eax
test edi, edi
jle 0x10010e8f
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x10010efc
test byte [0x10059abb], 4
je 0x10010eb1
push str.Set_current_compartment_Id
push edi
push esi
mov edx, 0x1004ce88
lfence
call fcn.100048b0
add esp, 0xc
mov ebx, dword [ebp - 0xd0]
test ebx, ebx
je 0x10010eca
push ebx
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jns 0x10010ee9
push 0
mov eax, edi
mov ecx, esi
cdq
push 0
push edx
push eax
mov edx, 0x13
lfence
call fcn.10010570
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xd0]
mov byte [ebp - 0xc9], 1
mov eax, dword [0x100585b0]
xorps xmm0, xmm0
mov dword [ebp - 0xdc], eax
mov ecx, edi
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
movups xmmword [ebp - 0xac], xmm0
movups xmmword [ebp - 0x9c], xmm0
call fcn.1003e9d0
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd4], eax
test edi, edi
jns 0x10010fb4
test byte [0x10059ab8], 4
je 0x10010f72
push str.Convert_HostName_to_unicode
push edi
lfence
call fcn.10001400
add esp, 8
mov eax, dword [ebp - 0xd4]
mov ebx, dword [ebp - 0xd0]
test eax, eax
je 0x10010f8b
push eax
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 0xc9], 0
je 0x10010fa0
push dword [ebp - 0xe0]
call dword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
test edi, edi
js 0x10010eb7
or byte [esi + 0xc2], 0x10
jmp 0x100110a7
movzx eax, word [ebx]
mov edi, dword [ebp - 0xd4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 4
push eax
push 0
push edi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x10011010
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa8]
push ebx
call fcn.10040130
add esp, 4
push dword [ebp - 0xb0]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
xor edi, edi
jmp 0x10010f6c
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xac], 2
push eax
lea eax, [ebp - 0xac]
push eax
push 0
push edi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x10010fe8
test byte [0x10059ab8], 4
je 0x10011050
push str.Resolving_hostname_to_IP
mov edx, 0x1004c7d0
call fcn.10001490
add esp, 4
test byte [0x10059abe], 0x10
mov ebx, dword [ebp - 0xd0]
je 0x10011095
push ebx
push dword [ebp - 0xdc]
lea eax, [ebp - 0x8c]
push str.__p__Couldnt_resolve_hostname__s_to_an_IP_address
push 0xffffffffffffffff
push 0x80
push eax
lfence
call fcn.100015f0
lea eax, [ebp - 0x8c]
mov edx, 0x1004d088
push eax
call fcn.10001490
add esp, 0x1c
mov eax, dword [ebp - 0xd4]
mov edi, 0x80072af9
jmp 0x10010f78
mov ebx, edi
lea edi, [esi + 0x130]
mov ecx, edi
call fcn.1000cd00
test al, al
je 0x100110e2
test byte [0x10059abb], 4
mov edi, 0x80070057
je 0x10010eb7
push str.Invalid_wildcard_remote_address_in_connection_start
push esi
mov edx, 0x1004c7e0
call fcn.10001280
add esp, 8
jmp 0x10010eb7
mov ax, word [ebp + 0x10]
rol ax, 8
mov word [esi + 0x132], ax
test byte [0x10059ab9], 0x40
je 0x1001110b
push edi
push 0x1c
push esi
mov edx, 0x1004c9a0
call fcn.10004960
add esp, 0xc
test byte [esi + 0xc2], 8
mov dword [ebp - 0xb8], 0
je 0x1001112c
lea eax, [esi + 0x14c]
mov dword [ebp - 0xc8], eax
jmp 0x10011136
mov dword [ebp - 0xc8], 0
movzx eax, byte [esi + 0xc3]
and eax, 2
mov dword [ebp - 0xc4], edi
test byte [esi + 0xc4], 2
mov dword [ebp - 0xc0], eax
je 0x10011163
mov eax, dword [esi + 0x164]
mov dword [ebp - 0xbc], eax
jmp 0x1001116d
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xd8]
lea edx, [esi + 0x128]
lea ecx, [ebp - 0xc8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xb4], eax
call fcn.10003fd0
mov edi, eax
test edi, edi
js 0x10010eb7
test byte [esi + 0xc3], 2
je 0x100111ca
lea eax, [esi + 0x372]
xor edx, edx
push eax
lfence
movzx eax, byte [esi + 0x370]
mov ecx, esi
push eax
movzx eax, word [esi + 0xd2]
push eax
call fcn.1000d600
add esp, 0xc
mov edi, eax
jmp 0x100111ea
push 0x28
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100111ee
xorps xmm0, xmm0
mov dword [edi + 0x14], esi
movups xmmword [edi + 0x18], xmm0
test edi, edi
jne 0x100111f8
mov edi, 0x8007000e
jmp 0x10010eb7
lfence
add dword [esi + 0xf0], 1
adc dword [esi + 0xf4], 0
test byte [0x10059aba], 0x80
je 0x10011232
lfence
lea eax, [edi + 0x28]
mov edx, 0x1004cea8
push eax
movzx eax, byte [edi + 0x19]
push eax
push dword [edi + 0x24]
push dword [edi + 0x20]
push esi
call fcn.1000d210
add esp, 0x14
mov eax, dword [esi + 0x360]
lea ecx, [edi + 0x10]
mov dword [ecx], eax
mov edx, edi
mov dword [esi + 0x360], ecx
mov ecx, dword [esi + 0x128]
call fcn.10005600
lfence
test al, al
jne 0x10011276
mov ecx, dword [esi + 0x128]
call fcn.10004290
mov dword [esi + 0x128], 0
mov edi, 0x8007000e
jmp 0x10010eb7
or byte [esi + 0xc2], 8
lea ecx, [esi + 0x14c]
mov eax, dword [esi + 0x128]
mov eax, dword [eax + 0x18]
movups xmm0, xmmword [eax + 8]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [ecx + 0x10], xmm0
mov eax, dword [eax + 0x20]
mov dword [ecx + 0x18], eax
test byte [0x10059ab9], 0x40
je 0x100112c0
push ecx
push 0x1c
push esi
mov edx, 0x1004d048
lfence
call fcn.10004960
add esp, 0xc
lea ecx, [esi + 0x878]
mov dword [esi + 0x484], ebx
call fcn.10027530
mov edi, eax
test edi, edi
js 0x10010ece
mov edx, dword [ebp - 0xd8]
mov ecx, esi
lfence
call fcn.10011fb0
mov edi, eax
test edi, edi
js 0x10010ece
cmp dword [esi + 0x90], 0
je 0x10010ee9
lfence
imul eax, dword [esi + 0x90], 0x3e8
mov edx, 3
push 0
mov ecx, esi
push eax
call fcn.1000df20
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret