Function at 0x403660
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x804
push ebx
push 0x26
push eax
call fcn.0041f640
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403afa
push ebp
push esi
push edi
push 5
push 0x4409bc
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x403723
mov ecx, dword [0x447c50]
lea ebp, [ecx + 0xd30]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 5
je 0x4036d5
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
lea edx, [ebx + 5]
push ecx
lea eax, [esi + ebx]
push edx
push eax
call fcn.0041f1f0
add esp, 0xc
test esi, esi
jl 0x4036e2
mov ecx, esi
mov esi, ebp
jmp 0x403a91
push esi
push 0x145
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea eax, [esp + 0x424]
push 0x100
push eax
call fcn.0041f19c
add esp, 0x18
lea ecx, [esp + 0x414]
push 0
push str.GuiXT_memcpy_error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
push 9
push str.database
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x4037c3
mov edx, dword [0x447c50]
or ecx, 0xffffffff
lea ebp, [edx + 0xe30]
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 9
je 0x403775
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff7
lea eax, [ebx + 9]
push ecx
lea ecx, [esi + ebx]
push eax
push ecx
call fcn.0041f1f0
add esp, 0xc
test esi, esi
jl 0x403782
mov ecx, esi
mov esi, ebp
jmp 0x403a91
push esi
push 0x155
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea eax, [esp + 0x624]
push 0x100
push eax
call fcn.0041f19c
add esp, 0x18
lea ecx, [esp + 0x614]
push 0
push str.GuiXT_memcpy_error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
push 7
push str.client
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x403863
mov edx, dword [0x447c50]
or ecx, 0xffffffff
lea ebp, [edx + 0xf30]
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 7
je 0x403815
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff9
lea eax, [ebx + 7]
push ecx
lea ecx, [esi + ebx]
push eax
push ecx
call fcn.0041f1f0
add esp, 0xc
test esi, esi
jl 0x403822
mov ecx, esi
mov esi, ebp
jmp 0x403a91
push esi
push 0x164
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea eax, [esp + 0x124]
push 0x100
push eax
call fcn.0041f19c
add esp, 0x18
lea ecx, [esp + 0x114]
push 0
push str.GuiXT_memcpy_error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
push 8
push str.winuser
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x40390f
push str.USERNAME
call fcn.0041f0fe
mov esi, eax
add esp, 4
test esi, esi
jne 0x403893
mov esi, 0x4488a8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 8
je 0x4038c3
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff8
lea edx, [ebx + 8]
push ecx
lea eax, [ebx + ebp]
push edx
push eax
call fcn.0041f1f0
add esp, 0xc
test ebp, ebp
jl 0x4038ce
mov ecx, ebp
jmp 0x403a91
push ebp
push 0x175
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea eax, [esp + 0x224]
push 0x100
push eax
call fcn.0041f19c
add esp, 0x18
lea ecx, [esp + 0x214]
push 0
push str.GuiXT_memcpy_error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
push 9
push str.hostname
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x4039e1
mov dl, byte [0x4488a8]
mov ecx, 0x3f
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 9
je 0x403981
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff7
lea edx, [esi + ebx]
push ecx
lea ecx, [ebx + 9]
push ecx
push edx
call fcn.0041f1f0
add esp, 0xc
test esi, esi
jl 0x4039a0
mov ecx, esi
lea esi, [esp + 0x14]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403ae2
push esi
push 0x185
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea ecx, [esp + 0x324]
push 0x100
push ecx
call fcn.0041f19c
add esp, 0x18
lea edx, [esp + 0x314]
push 0
push str.GuiXT_memcpy_error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
push 3
push 0x44092c
push ebx
call fcn.0041f530
add esp, 0xc
test eax, eax
jne 0x403ae1
lea edi, [ebx + 3]
push 0x5d
push edi
call fcn.0041f640
add esp, 8
test eax, eax
je 0x403ae2
mov esi, eax
sub eax, edi
push eax
push 0x100
lea eax, [esp + 0x51c]
sub esi, ebx
push edi
push eax
inc esi
call fcn.00416650
lea ecx, [esp + 0x524]
push ecx
call fcn.0041f0fe
mov edx, eax
add esp, 0x14
test edx, edx
mov dword [esp + 0x10], edx
jne 0x403a50
mov dword [esp + 0x10], 0x4488a8
mov edx, dword [esp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, esi
je 0x403a89
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, 1
dec ecx
sub edx, esi
add esi, ebx
add ecx, edx
lea eax, [ebx + ebp]
push ecx
push esi
push eax
call fcn.0041f1f0
mov edx, dword [esp + 0x1c]
add esp, 0xc
test ebp, ebp
jl 0x403aa3
mov ecx, ebp
mov esi, edx
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403ae2
push ebp
push 0x19c
push str.C:Sourceguixt..grlibgrfile.h
push str.file_s_line_d__value_i
lea eax, [esp + 0x724]
push 0x100
push eax
call fcn.0041f19c
add esp, 0x18
lea ecx, [esp + 0x714]
push 0
push str.GuiXT_memcpy_error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403ae2
inc ebx
push 0x26
push ebx
call fcn.0041f640
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403683
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret