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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10146d4b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jl 0x10013912
mov dword [ebp + 8], eax
mov ebx, eax
call fcn.10013720
mov dword [esp + 0x24], 0
test ebx, ebx
jle 0x10013ce0
mov dword [esp + 0x18], edi
jmp 0x10013930
push 0x10
call fcn.10128320
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x10013cb0
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
test edi, edi
je 0x10013c42
mov ecx, dword [edi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 4], edx
mov eax, dword [edi]
test eax, eax
je 0x1001399d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013972
sub eax, edx
inc eax
push eax
call fcn.10128320
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x10013c47
mov ecx, dword [edi]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10013993
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100139c5
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x100139c5
mov eax, dword [edi + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100139b7
sub eax, edx
lea esi, [eax + 1]
jmp 0x100139ca
mov esi, 1
push esi
call fcn.10128320
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x10013c89
mov byte [eax], 0
cmp esi, 1
jbe 0x100139fa
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100139fa
mov edx, dword [ebx + 0xc]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100139f0
mov esi, dword [ebx]
mov eax, esi
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013a20
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x9c]
call fcn.10009b30
xor esi, esi
push esi
mov dword [esp + 0xc4], esi
call fcn.101290ae
add dword [ebx + 8], eax
mov eax, dword [ebx + 4]
dec eax
mov edi, 0xf
add esp, 4
mov dword [esp + 0x78], edx
cmp eax, edi
ja case.0x10013a64.3
movzx eax, byte [eax + 0x10013d34]
jmp dword [eax*4 + 0x10013d18]
push 2
push 0x10158868
jmp 0x10013a9f
push 3
push 0x1015886c
jmp 0x10013a9f
push 3
push 0x10158870
jmp 0x10013a9f
push 4
push str._txt
jmp 0x10013a9f
push 4
push str._ptr
jmp 0x10013a9f
push 6
push str._cname
lea eax, [esp + 0x9c]
call fcn.1000de90
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
call fcn.10009a50
mov dword [esp + 0x68], ebx
push 0xffffffffffffffff
mov byte [esp + 0xc4], 1
push esi
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.10009a50
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x8c]
push edx
lea eax, [edi + 4]
push eax
mov byte [esp + 0xcc], 2
call fcn.10014400
cmp dword [esp + 0x44], 0x10
jb 0x10013b34
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10128f9e
add esp, 4
mov byte [esp + 0xc0], 0
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
jb 0x10013b61
mov edx, dword [esp + 0x50]
push edx
call fcn.10128f9e
add esp, 4
mov eax, dword [edi + 0x38]
mov eax, dword [eax]
mov esi, dword [edi + 0x24]
add edi, 0x24
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [edi]
test esi, esi
je 0x10013b81
cmp esi, eax
je 0x10013b86
call fcn.10128a71
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x70]
je 0x10013be5
test esi, esi
jne 0x10013bdd
call fcn.10128a71
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x10013ba9
call fcn.10128a71
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 8]
cmp ecx, dword [ebx + 8]
jae 0x10013be5
test esi, esi
jne 0x10013be1
call fcn.10128a71
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x14]
jne 0x10013bd1
call fcn.10128a71
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
jmp 0x10013b70
mov eax, dword [esi]
jmp 0x10013b9b
mov eax, dword [esi]
jmp 0x10013bc3
push eax
push esi
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x34]
mov ebx, edi
call fcn.100142e0
mov esi, 0x10
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0xac], esi
jb 0x10013c23
mov eax, dword [esp + 0x98]
push eax
call fcn.10128f9e
add esp, 4
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], esi
inc eax
cmp eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
jge 0x10013cdc
mov edi, dword [esp + 0x18]
jmp 0x10013930
or esi, 0xffffffff
jmp 0x10013c60
push 0x42
push str.DnsAnswer::copy
push str._s:_d_Error___OutOfMemory
call fcn.1011cbf0
add esp, 0xc
mov esi, 0xfffffffd
push 0x1a6
push str.DNSCache::add
push str._s:_d_Error___Copy_failed
call fcn.1011cbf0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x40]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
jmp 0x10013cef
push 0x5b
push str.DnsAnswer::copy
push str._s:_d_Error___OutOfMemory
call fcn.1011cbf0
mov ecx, dword [ebx]
add esp, 0xc
push ecx
call fcn.10128243
add esp, 4
mov dword [ebx], 0
jmp 0x10013c5b
push 0x19c
push str.DNSCache::add
push str._s:_d_Error___OutOfMemory
call fcn.1011cbf0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x40]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0xfffffffd
jmp 0x10013cef
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4