Function at 0x6d662836
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
cmp dword [0x6d67112c], ebx
jne 0x6d66295e
mov eax, dword [esi]
push str.java_net_InetAddress
push esi
call dword [eax + 0x18]
mov ecx, dword [esi]
push eax
push esi
mov dword [0x6d67110c], eax
call dword [ecx + 0x54]
push str.java_net_Inet4Address
mov dword [0x6d67110c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov ecx, dword [esi]
push eax
push esi
mov dword [0x6d671118], eax
call dword [ecx + 0x54]
push str.java_net_Inet6Address
mov dword [0x6d671118], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov ecx, dword [esi]
push eax
push esi
mov dword [0x6d671110], eax
call dword [ecx + 0x54]
mov ebx, 0x6d66c2ac
push ebx
mov edi, str._init_
push edi
push dword [0x6d671118]
mov dword [0x6d671110], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x84]
push ebx
push edi
push dword [0x6d671110]
mov dword [0x6d671104], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x84]
mov edi, 0x6d66c248
push edi
push str.address
push dword [0x6d67110c]
mov dword [0x6d671120], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x178]
push edi
push str.family
push dword [0x6d67110c]
mov dword [0x6d671114], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x178]
push str.Ljava_lang_String_
push str.hostName
push dword [0x6d67110c]
mov dword [0x6d671108], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x178]
push 0x6d66c23c
push str.ipaddress
push dword [0x6d671110]
mov dword [0x6d671128], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x178]
mov dword [0x6d671124], eax
mov dword [0x6d67112c], 1
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x6d662975
push str.host_is_null
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
xor eax, eax
jmp 0x6d662b5f
push ebx
push dword [ebp + 0x10]
push esi
call sub.java.dll__JNU_GetStringPlatformChars_12
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x6d66296e
cmp dword [0x6d67111c], ebx
jne 0x6d6629cc
mov eax, dword [esi]
push str.java_net_InetAddress
push esi
call dword [eax + 0x18]
cmp eax, ebx
je 0x6d6629b8
mov ecx, dword [esi]
push 0x6d66c280
push str.preferIPv6Address
push eax
push esi
call dword [ecx + 0x240]
mov dword [0x6d67111c], eax
cmp dword [0x6d67111c], ebx
jne 0x6d6629cc
push edi
push dword [ebp + 0x10]
push esi
call sub.java.dll__JNU_ReleaseStringPlatformChars_12
jmp 0x6d66296e
push dword [0x6d67111c]
mov eax, dword [esi]
push dword [0x6d671644]
push esi
call dword [eax + 0x248]
push 0x20
mov byte [ebp + 0xb], al
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x6d662a1f
push edi
push str.java_net_UnknownHostException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d6629c0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
jmp 0x6d662ae7
mov ecx, dword [ebp - 8]
jmp 0x6d662a95
mov edx, dword [ecx + 4]
mov eax, dword [ebx + 4]
cmp eax, edx
jne 0x6d662a88
mov edi, dword [ebx + 0x10]
cmp edi, dword [ecx + 0x10]
jne 0x6d662a88
cmp edx, 2
jne 0x6d662a60
mov edx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x18]
mov edx, dword [edx + 4]
cmp edx, dword [eax + 4]
je 0x6d662ae4
jmp 0x6d662a92
mov eax, dword [ebx + 0x18]
mov edx, dword [ecx + 0x18]
and dword [ebp - 4], 0
lea edi, [eax + 8]
sub edx, eax
mov al, byte [edi]
cmp al, byte [edx + edi]
jne 0x6d662a80
inc dword [ebp - 4]
inc edi
cmp dword [ebp - 4], 0x10
jl 0x6d662a6f
cmp dword [ebp - 4], 0x10
jge 0x6d662ae4
jmp 0x6d662a92
cmp eax, 2
je 0x6d662a92
cmp eax, 0x17
jne 0x6d662ae4
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x6d662a35
push 0x20
call dword [sym.imp.msvcr100.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x6d662b22
push 0x20
push ebx
push edi
call sub.msvcr100.dll_memcpy
and dword [edi + 0x1c], 0
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x6d662ac3
mov dword [ebp - 8], edi
jmp 0x6d662ac9
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edi
mov eax, dword [ebx + 4]
inc dword [ebp - 0xc]
mov dword [ebp - 0x1c], edi
cmp eax, 2
jne 0x6d662adc
inc dword [ebp - 0x14]
jmp 0x6d662ae4
cmp eax, 0x17
jne 0x6d662ae4
inc dword [ebp - 0x10]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x6d662a30
mov eax, dword [esi]
mov ebx, dword [ebp - 8]
push 0
push dword [0x6d67110c]
push dword [ebp - 0xc]
push esi
call dword [eax + 0x2b0]
mov dword [ebp - 4], eax
test eax, eax
je 0x6d662b31
cmp byte [ebp + 0xb], 0
je 0x6d662b66
mov eax, dword [ebp - 0x10]
and dword [ebp - 0xc], 0
mov dword [ebp + 8], eax
jmp 0x6d662ca3
push str.heap_allocation_failed
push esi
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
and dword [ebp - 4], 0
mov edi, dword [ebp - 8]
test edi, edi
je 0x6d662b47
push edi
mov edi, dword [edi + 0x1c]
call dword [sym.imp.msvcr100.dll_free]
pop ecx
test edi, edi
jne 0x6d662b38
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push esi
call sub.java.dll__JNU_ReleaseStringPlatformChars_12
push dword [ebp - 0x18]
call dword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 0x14]
and dword [ebp + 8], 0
mov dword [ebp - 0xc], eax
jmp 0x6d662ca3
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x6d662be7
push dword [0x6d671104]
mov eax, dword [esi]
push dword [0x6d671118]
push esi
call dword [eax + 0x70]
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x6d662b2d
mov eax, dword [ebx + 0x18]
push dword [eax + 4]
mov edi, dword [esi]
call dword [sym.imp.ws2_32.dll_ntohl]
push eax
push dword [0x6d671114]
push dword [ebp - 0x14]
push esi
call dword [edi + 0x1b4]
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x6d671128]
push dword [ebp - 0x14]
push esi
call dword [eax + 0x1a0]
push dword [ebp - 0x14]
mov eax, dword [esi]
push dword [ebp + 8]
push dword [ebp - 4]
push esi
call dword [eax + 0x2b8]
inc dword [ebp + 8]
jmp 0x6d662ca0
cmp eax, 0x17
jne 0x6d662ca0
push dword [0x6d671120]
mov eax, dword [esi]
push dword [0x6d671110]
push esi
call dword [eax + 0x70]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x6d662b2d
mov eax, dword [esi]
push 0x10
push esi
call dword [eax + 0x2c0]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x6d662b2d
mov edx, dword [ebx + 0x18]
mov ecx, dword [esi]
add edx, 8
push edx
push 0x10
push 0
push eax
push esi
call dword [ecx + 0x340]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6d662c67
mov ecx, dword [esi]
push eax
push dword [0x6d671618]
push edi
push esi
call dword [ecx + 0x1b4]
mov eax, dword [esi]
push 1
push dword [0x6d671620]
push edi
push esi
call dword [eax + 0x1a4]
push dword [ebp - 0x1c]
mov eax, dword [esi]
push dword [0x6d671124]
push edi
push esi
call dword [eax + 0x1a0]
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x6d671128]
push edi
push esi
call dword [eax + 0x1a0]
mov eax, dword [esi]
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
call dword [eax + 0x2b8]
inc dword [ebp - 0xc]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x6d662b75
jmp 0x6d662b31