Function at 0x10051d10
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ac46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [0x1008d8a0]
mov byte [ebp - 0xf], dl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x5c], 0
cmp eax, 2
je 0x10051d4a
call fcn.10051bb0
push esi
push edi
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100521e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub esi, edi
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10051dd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x10051e6e
cmp esi, 0x2000
ja 0x10051e6e
lea eax, [ebp - 0xe]
mov byte [ebp - 0xe], 0
push eax
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x20]
call fcn.10052150
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub esi, edi
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10051d90
cmp byte [ebp - 0xf], 0
je 0x1005210f
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x78], 2
movups xmmword [ebp - 0x6c], xmm0
call fcn.10051ca0
test al, al
mov dword [ebp - 0x28], 0
mov ecx, 2
mov edx, 0x20000
cmovne ecx, edx
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
mov edx, edi
mov dword [ebp - 0x24], 0
call fcn.1003e4f0
cmp dword [eax + 0x14], 8
jb 0x10051e32
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, dword [ebp - 0x98]
mov esi, eax
cmp ecx, 8
jb 0x10051fdc
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xac]
cmp eax, 0x7fffffff
jbe 0x10051f98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, eax
lea ecx, [ebp - 0x94]
call fcn.100160e0
push eax
mov edx, str.Failed_to_get_own_hostname._Error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10011e10
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
call fcn.1002d050
push 0
push esi
push str.log4cplus:ERROR
push 0x1003c0f0
push dword [0x1008d96c]
mov ecx, eax
call fcn.1003c2e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x10051f17
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x10051ed2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
add eax, eax
cmp eax, 0x1000
jb 0x10051f0e
test byte [ebp - 0x40], 0x1f
je 0x10051ee7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10051ef4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x10051f01
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10051f0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10061b5c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x10051f8e
mov ecx, dword [ebp - 0x94]
inc eax
cmp eax, 0x7fffffff
jbe 0x10051f4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
add eax, eax
cmp eax, 0x1000
jb 0x10051f85
test cl, 0x1f
je 0x10051f5e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10051f6b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x10051f78
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10051f83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10061b5c
add esp, 4
mov edx, str.unknown
jmp 0x10052111
add eax, eax
cmp eax, 0x1000
jb 0x10051fd3
test cl, 0x1f
je 0x10051fac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10051fb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x10051fc6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10051fd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10061b5c
add esp, 4
test esi, esi
je 0x10052134
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, esi
lea ecx, [ebp - 0xc4]
call fcn.100160e0
push eax
mov edx, str.Failed_to_resolve_own_hostname._Error:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.10011e10
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
call fcn.1002d050
push 0
push esi
push str.log4cplus:ERROR
push 0x1003c0f0
push dword [0x1008d96c]
mov ecx, eax
call fcn.1003c2e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x10052094
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x1005204f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
add eax, eax
cmp eax, 0x1000
jb 0x1005208b
test byte [ebp - 0x58], 0x1f
je 0x10052064
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10052071
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x1005207e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10052089
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10061b5c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x1005210f
mov ecx, dword [ebp - 0xc4]
inc eax
cmp eax, 0x7fffffff
jbe 0x100520cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
add eax, eax
cmp eax, 0x1000
jb 0x10052106
test cl, 0x1f
je 0x100520df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100520ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x100520f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10052104
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10061b5c
add esp, 4
mov edx, edi
mov ecx, dword [ebp - 0x14]
call fcn.1003e4f0
lea ecx, [ebp - 0x20]
call fcn.1003ea30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
push dword [esi + 0x14]
call fcn.1000cd20
push esi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
jmp 0x10052119