Function at 0x414570
Capabilities:
Get hostname

Disassembly:
sub esp, 0x38
mov al, byte [0x49d814]
push ebx
push ebp
push edi
mov byte [esp + 0x10], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x3a
xor eax, eax
mov edi, 0x4c9870
push 0x32
rep stosd dword es:[edi], eax
push 0x4c9870
call dword [sym.imp.WS2_32.dll_gethostname]
mov ebp, dword [esp + 0x48]
xor ebx, ebx
cmp ebp, ebx
je 0x4145dc
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x4145dc
mov ecx, dword [0x48f618]
push 0x166
push ecx
push 0x48fc60
call fcn.004086d0
add esp, 0xc
push esi
push 0x31
push ebp
push 0x4c98a2
call fcn.004075a0
mov esi, dword [esp + 0x5c]
add esp, 0xc
cmp esi, ebx
je 0x414602
mov dl, byte [esi]
xor eax, eax
cmp dl, bl
sete al
cmp eax, ebx
je 0x414649
lea edx, [esp + 0x10]
push edx
call fcn.00412810
mov edx, dword [esp + 0x14]
add esp, 4
cmp edx, ebx
je 0x414644
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x414644
mov eax, dword [0x48f618]
push 0x16a
push eax
push 0x48fc10
call fcn.004086d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x31
push edx
jmp 0x414676
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x414673
mov ecx, dword [0x48f618]
push 0x16d
push ecx
push 0x48fbc8
call fcn.004086d0
add esp, 0xc
push 0x31
push esi
push 0x4c98d4
call fcn.004075a0
add esp, 0xc
call fcn.00413b50
push 7
push 0x48fbc0
push ebp
mov dword [0x4c9938], eax
call fcn.00407b70
add esp, 0xc
test eax, eax
jne 0x4146bc
mov edx, dword [0x4c9938]
push edx
push 0x48fbb4
push 0x4c9906
call fcn.00451a0d
jmp 0x4148ed
push 0x48fbac
call fcn.00451a5f
mov esi, eax
add esp, 4
cmp esi, 0x3e8
jbe 0x4147b3
cmp esi, ebx
je 0x414704
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x414704
mov eax, dword [0x48f618]
push 0x178
push eax
push 0x48fb6c
call fcn.004086d0
add esp, 0xc
push 0x31
push esi
push 0x4c9906
call fcn.004075a0
push 0x3a
push 0x4c9906
call fcn.00407bd0
mov esi, eax
add esp, 0x14
cmp esi, 0x3e8
jbe 0x4147b3
mov byte [esi], bl
inc esi
je 0x41475d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x41475d
mov ecx, dword [0x48f618]
push 0x180
push ecx
push 0x48fb30
call fcn.004086d0
add esp, 0xc
push 0x31
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004075a0
lea eax, [esp + 0x20]
push 0x2e
push eax
call fcn.00407bd0
add esp, 0x14
cmp eax, 0x3e8
jbe 0x414782
mov byte [eax], bl
mov ecx, 0x478168
test ecx, ecx
jne 0x414790
mov ecx, 0x49d814
lea edx, [esp + 0x14]
lea eax, [esp + 0x14]
test edx, edx
jne 0x4147a1
mov eax, 0x49d814
push ecx
push eax
call fcn.00407b10
add esp, 8
test eax, eax
jne 0x4147b3
mov byte [esp + 0x14], bl
mov eax, 0x4c9906
test eax, eax
je 0x4147cd
mov dl, byte [0x4c9906]
xor eax, eax
cmp dl, bl
sete al
cmp eax, ebx
je 0x414814
mov ecx, 0x4c9870
test ecx, ecx
je 0x414800
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x31
jle 0x414800
mov edx, dword [0x48f618]
push 0x18a
push edx
push 0x48fae0
call fcn.004086d0
add esp, 0xc
push 0x31
push 0x4c9870
push 0x4c9906
call fcn.004075a0
add esp, 0xc
lea eax, [esp + 0x14]
test eax, eax
je 0x4148f0
mov dl, byte [esp + 0x14]
xor eax, eax
cmp dl, bl
sete al
cmp eax, ebx
jne 0x4148f0
mov ecx, 0x4c9906
test ecx, ecx
je 0x41484a
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x41484c
xor ecx, ecx
mov edx, 0x475bc4
mov eax, 0x31
neg edx
sbb edx, edx
sub eax, ecx
neg edx
cmp edx, eax
jle 0x41487b
mov ecx, dword [0x48f618]
push 0x18c
push ecx
push 0x48fa98
call fcn.004086d0
add esp, 0xc
push 0x31
push 0x475bc4
push 0x4c9906
call fcn.00407630
mov edx, 0x4c9906
add esp, 0xc
test edx, edx
je 0x4148a8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
jmp 0x4148aa
xor edx, edx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, 0x31
dec ecx
sub eax, edx
cmp ecx, eax
jle 0x4148dc
mov ecx, dword [0x48f618]
push 0x18d
push ecx
push 0x48fa4c
call fcn.004086d0
add esp, 0xc
lea edx, [esp + 0x14]
push 0x31
push edx
push 0x4c9906
call fcn.00407630
add esp, 0xc
mov eax, dword [esp + 0x54]
pop esi
mov ecx, eax
dec ecx
je 0x414961
dec ecx
je 0x414955
cmp eax, ebx
mov dword [0x48f620], ebx
jge 0x414909
neg eax
push 0x4c993c
mov dword [0x4c9940], eax
mov dword [0x4c9944], ebx
call fcn.0040bba0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push 0x48fa48
push ebp
mov dword [0x4c9950], eax
mov dword [0x4c9954], ecx
call fcn.00407b10
add esp, 0xc
test eax, eax
jne 0x414949
mov byte [0x48f6ac], bl
pop edi
pop ebp
mov eax, 0x4c9870
pop ebx
add esp, 0x38
ret
mov dword [0x48f620], 1
jmp 0x414909
mov dword [0x48f620], 2
mov dword [0x48f624], ebx
jmp 0x414909