Function at 0x10002800
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ebx
call sym.net.dll__initInetAddressIDs_4
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
je 0x1000283b
xor eax, eax
jmp 0x10002a40
cmp edi, ebx
jne 0x1000284c
push str.host_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10002834
push ebx
push edi
push esi
call sub.java.dll__JNU_GetStringPlatformChars_12
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x10002834
movsx eax, byte [edi]
push eax
call dword [sym.imp.msvcr100.dll_isspace]
pop ecx
test eax, eax
je 0x10002872
push edi
jmp 0x10002a26
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10002737
pop ecx
pop ecx
test al, al
je 0x10002941
mov eax, 0xff
cmp dword [ebp - 0x14], eax
ja 0x10002a23
cmp dword [ebp - 0x10], eax
ja 0x10002a23
cmp dword [ebp - 0xc], eax
ja 0x10002a23
mov edi, dword [ebp - 8]
cmp edi, eax
ja 0x10002a23
mov eax, dword [esi]
push ebx
push dword [0x100125f4]
push 1
push esi
call dword [eax + 0x2b0]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10002a31
push dword [0x1001262c]
mov eax, dword [esi]
push dword [0x10012628]
push esi
call dword [eax + 0x70]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100028f2
and dword [ebp - 0x18], 0
jmp 0x10002a31
movzx eax, byte [ebp - 0xc]
movzx ecx, byte [ebp - 0x10]
shl edi, 8
or eax, edi
shl eax, 8
or eax, ecx
shl eax, 8
or eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ws2_32.dll_ntohl]
push eax
push ebx
push esi
call fcn.1000aa91
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x390]
test al, al
jne 0x10002a31
mov eax, dword [esi]
push ebx
push 0
push dword [ebp - 0x18]
push esi
call dword [eax + 0x2b8]
jmp 0x10002a31
push edi
call dword [sym.imp.ws2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x10002a03
mov eax, dword [edi + 0xc]
xor ecx, ecx
jmp 0x1000295d
inc ecx
add eax, 4
cmp dword [eax], ebx
jne 0x10002959
mov eax, dword [esi]
push ebx
push dword [0x100125f4]
push ecx
push esi
call dword [eax + 0x2b0]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10002a31
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x20], ebx
cmp dword [edi], ebx
je 0x10002a31
push dword [0x1001262c]
mov eax, dword [esi]
push dword [0x10012628]
push esi
call dword [eax + 0x70]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100028e9
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.ws2_32.dll_ntohl]
push eax
push ebx
push esi
call fcn.1000aa91
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x390]
test al, al
jne 0x10002a31
push dword [ebp - 0x24]
push ebx
push esi
call fcn.1000ab0f
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x390]
test al, al
jne 0x10002a31
mov eax, dword [esi]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push esi
call dword [eax + 0x2b8]
add edi, 4
inc dword [ebp - 0x20]
cmp dword [edi], 0
jne 0x1000298b
jmp 0x10002a31
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2afa
jne 0x10002a23
push dword [ebp - 0x1c]
push str.java_net_UnknownHostException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x10002a31
push dword [ebp - 0x1c]
push str.java_net_UnknownHostException
push esi
call sub.java.dll__JNU_ThrowByName_12
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push esi
call sub.java.dll__JNU_ReleaseStringPlatformChars_12
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0xc