Function at 0x576490
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f4
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8b4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8f0], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x8ec], eax
mov esi, edx
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x18
mov dword [ebp - 0x8c4], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x8bc], eax
push 0x400
mov al, byte [edi + 4]
and al, 1
mov dword [ebp - 0x8d0], ecx
mov byte [ebp - 0x8a9], al
lea eax, [ebp - 0x8a7]
push 0
push eax
mov dword [ebp - 0x8d8], edi
mov dword [ebp - 0x8cc], 0
call fcn.005d05b0
add esp, 0xc
mov dword [ebp - 0x8c8], 0x6292df
xor ebx, ebx
mov dword [ebp - 0x8c0], ebx
mov dword [ebp - 0x8b0], ebx
push 0x5c
push esi
call fcn.005cf910
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x57654b
push 0x2f
push esi
call fcn.005cf910
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x57655b
mov eax, ecx
mov dword [ebp - 0x8c8], esi
sub eax, esi
mov dword [ebp - 0x8b0], eax
test ecx, ecx
lea eax, [ecx + 1]
cmove eax, esi
mov dword [ebp - 0x8d4], eax
test eax, eax
je 0x576581
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x576572
sub ebx, ecx
mov dword [ebp - 0x8c0], ebx
push 0x401
lea eax, [ebp - 0x8a8]
mov byte [ebp - 0x8a8], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 0x4a8], 0
test eax, eax
jne 0x5765dd
lea eax, [ebp - 0x8a8]
push 0x2e
push eax
call fcn.005cf910
add esp, 8
test eax, eax
je 0x5765bd
mov byte [eax], 0
lea ecx, [ebp - 0x8a8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5765c6
mov esi, dword [ebp - 0x8d0]
sub ecx, edx
mov dword [ebp - 0x8b8], ecx
jmp 0x5765fb
mov esi, dword [ebp - 0x8d0]
push str.gethostname___failed__continuing_without__n
push esi
call fcn.00543710
add esp, 8
mov dword [ebp - 0x8b8], 0
cmp dword [edi + 0x14], 0
je 0x5767f4
push 8
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.00576c20
add esp, 4
test eax, eax
jne 0x576bd6
mov edx, dword [ebp - 0x8b4]
lea eax, [ebp - 0x9c]
push eax
call fcn.00576fb0
add esp, 4
test eax, eax
jne 0x576bd6
mov eax, dword [ebp - 0x8b0]
add eax, ebx
add eax, eax
push eax
mov dword [ebp - 0x8bc], eax
call dword [0x65ede0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x576671
mov esi, 0x1b
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
xor esi, esi
test ebx, ebx
je 0x5766ae
nop word [eax + eax]
mov eax, dword [ebp - 0x8d4]
mov bl, byte [eax + esi]
mov byte [edi + esi*2 + 1], 0
lea eax, [ebx - 0x20]
lea edx, [ebx - 0x61]
movzx ecx, al
cmp dl, 0x19
movzx eax, bl
mov ebx, dword [ebp - 0x8c0]
cmova ecx, eax
mov byte [edi + esi*2], cl
inc esi
cmp esi, ebx
jb 0x576680
mov edx, dword [ebp - 0x8b0]
lea esi, [edi + ebx*2]
xor ecx, ecx
test edx, edx
je 0x5766d9
mov ebx, dword [ebp - 0x8c8]
mov al, byte [ecx + ebx]
mov byte [esi + ecx*2], al
mov byte [esi + ecx*2 + 1], 0
inc ecx
cmp ecx, edx
jb 0x5766c3
mov ebx, dword [ebp - 0x8c0]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8bc]
lea ecx, [ebp - 0x9c]
push edi
call fcn.005770c0
add esp, 0xc
mov esi, eax
push edi
call dword [0x65ede8]
add esp, 4
test esi, esi
jne 0x576bd4
mov edi, dword [ebp - 0x8d8]
lea edx, [ebp - 0x84]
push 0x10
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
call fcn.00579b00
mov esi, eax
add esp, 4
mov dword [ebp - 0x8b4], esi
test esi, esi
je 0x576a9f
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push 0x10
push ecx
push dword [esi + 4]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebp - 0x8b4]
add esp, 0xc
mov esi, dword [esi]
push dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 8]
call eax
push dword [esi + 0x14]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x8b4]
push dword [eax + 8]
mov eax, dword [esi + 4]
call eax
mov eax, dword [ebp - 0x8b4]
add esp, 0x14
push dword [eax + 8]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 8]
call eax
push dword [ebp - 0x8b4]
call dword [0x65ede8]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0xc]
movups xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x8c4]
movups xmmword [ebp - 0x54], xmm0
push eax
lea eax, [ebp - 0x8cc]
push eax
push edi
call fcn.00577130
add esp, 0xc
test eax, eax
jne 0x576bd6
mov eax, dword [ebp - 0x8cc]
mov dword [ebp - 0x8bc], eax
jmp 0x57688f
mov esi, dword [ebp - 0x8b4]
lea eax, [ebp - 0x3c]
push eax
mov edx, esi
call fcn.00576fb0
add esp, 4
test eax, eax
jne 0x576bd6
lea eax, [ebp - 0x3c]
add edi, 8
push eax
lea edx, [ebp - 0x6c]
mov ecx, edi
call fcn.00576db0
add esp, 4
lea eax, [ebp - 0x35]
lea edx, [ebp - 0x64]
mov ecx, edi
push eax
call fcn.00576db0
add esp, 4
lea eax, [ebp - 0x2e]
lea edx, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00576db0
add esp, 4
lea eax, [ebp - 0x24]
mov edx, esi
push eax
call fcn.00576f00
add esp, 4
test eax, eax
jne 0x576bd6
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea edx, [ebp - 0x54]
call fcn.00576db0
add esp, 4
lea eax, [ebp - 0x1d]
lea edx, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.00576db0
add esp, 4
lea eax, [ebp - 0x16]
lea edx, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00576db0
add esp, 4
cmp byte [ebp - 0x8a9], 0
je 0x5768bc
mov eax, dword [ebp - 0x8b0]
add ebx, ebx
add eax, eax
mov dword [ebp - 0x8c0], ebx
mov dword [ebp - 0x8b0], eax
mov eax, dword [ebp - 0x8b8]
add eax, eax
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp - 0x8c4]
add eax, 0x58
add eax, dword [ebp - 0x8b0]
mov dword [ebp - 0x8b4], eax
lea ecx, [ebx + eax]
mov eax, dword [ebp - 0x8b8]
shr eax, 8
movzx edx, al
mov eax, dword [ebp - 0x8b8]
movzx esi, al
mov eax, ebx
shr eax, 8
movzx edi, al
mov eax, dword [ebp - 0x8b0]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x8e0], eax
movzx ebx, bl
mov dword [ebp - 0x8dc], ebx
mov ebx, dword [ebp - 0x8b0]
movzx eax, bl
mov ebx, dword [ebp - 0x8c4]
mov dword [ebp - 0x8e4], eax
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp - 0x8e8], eax
movzx eax, bl
mov ebx, dword [ebp - 0x8d8]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 7]
push eax
movzx eax, byte [ebx + 6]
push eax
movzx eax, byte [ebx + 5]
push eax
movzx eax, byte [ebx + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp - 0x8dc]
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
mov ecx, dword [ebp - 0x8b4]
push eax
push edx
push esi
push edx
push esi
push 0
push 0
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
push edi
push ebx
push edi
push ebx
mov ebx, dword [ebp - 0x8c4]
push 0
push 0
lea ecx, [ebx + 0x58]
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
mov ecx, dword [ebp - 0x8e4]
push eax
mov eax, dword [ebp - 0x8e0]
push eax
push ecx
push eax
mov eax, dword [ebp - 0x8e8]
push ecx
mov ecx, dword [ebp - 8]
push 0
push 0
push 0
push 0x58
push eax
push ecx
push eax
push ecx
push 0
push 0
push 0
push 0x40
push 0
push 0x18
push 0
push 0x18
push 0
push 0
push 0
push 0
push 0x63f858
lea eax, [ebp - 0x4a0]
push 0x400
push eax
call sym.PayClient.exe_curl_msnprintf
mov edi, eax
add esp, 0xec
cmp edi, 0x3e8
jae 0x576a2f
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [ebp + edi - 0x4a0], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [ebp + edi - 0x490], xmm0
add edi, 0x18
mov eax, 0x400
sub eax, ebx
cmp edi, eax
jae 0x576a54
push ebx
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x4a0]
add eax, edi
push eax
call fcn.005cfab0
add esp, 0xc
add edi, ebx
push dword [ebp - 0x8cc]
call dword [0x65ede8]
mov edx, dword [ebp - 0x8b0]
add esp, 4
mov esi, dword [ebp - 0x8c0]
mov ebx, dword [ebp - 0x8b8]
lea eax, [edi + edx]
mov dword [ebp - 0x8bc], eax
add eax, esi
add eax, ebx
mov dword [ebp - 8], eax
cmp eax, 0x400
jb 0x576ab5
push str.user__domain__host_name_too_big
push dword [ebp - 0x8d0]
call fcn.00543790
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x8a9], 0
lea edi, [ebp + edi - 0x4a0]
je 0x576aec
shr edx, 1
mov ecx, 0
je 0x576afc
mov ebx, dword [ebp - 0x8c8]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, edx
jb 0x576ad4
mov ebx, dword [ebp - 0x8b8]
jmp 0x576afc
push edx
push dword [ebp - 0x8c8]
push edi
call fcn.005cfab0
add esp, 0xc
lea edx, [ebp - 0x4a0]
add edx, dword [ebp - 0x8bc]
cmp byte [ebp - 0x8a9], 0
je 0x576b3a
mov edi, esi
mov ecx, 0
shr edi, 1
je 0x576b4a
mov ebx, dword [ebp - 0x8d4]
mov al, byte [ebx + ecx]
mov byte [edx + ecx*2], al
mov byte [edx + ecx*2 + 1], 0
inc ecx
cmp ecx, edi
jb 0x576b22
mov ebx, dword [ebp - 0x8b8]
jmp 0x576b4a
push esi
push dword [ebp - 0x8d4]
push edx
call fcn.005cfab0
add esp, 0xc
mov eax, dword [ebp - 0x8bc]
lea edx, [ebp - 0x4a0]
add eax, esi
add edx, eax
cmp byte [ebp - 0x8a9], 0
je 0x576b86
shr ebx, 1
mov ecx, 0
je 0x576b97
nop dword [eax]
mov al, byte [ebp + ecx - 0x8a8]
mov byte [edx + ecx*2], al
mov byte [edx + ecx*2 + 1], 0
inc ecx
cmp ecx, ebx
jb 0x576b70
jmp 0x576b97
push ebx
lea eax, [ebp - 0x8a8]
push eax
push edx
call fcn.005cfab0
add esp, 0xc
push dword [ebp - 0x8ec]
lea eax, [ebp - 0x4a0]
push dword [ebp - 0x8f0]
push dword [ebp - 8]
push eax
call fcn.00573de0
mov edi, dword [ebp - 0x8d8]
mov esi, eax
push dword [edi + 0x10]
call dword [0x65ede8]
add esp, 0x14
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret