Function at 0x4124a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea32
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x51d584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, 0xf
mov edi, ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x13c], bl
mov dword [ebp - 4], ebx
cmp dword [0x525130], ebx
jne 0x412516
cmp dword [0x525134], ebx
jne 0x412516
push 1
call fcn.00480dc0
add esp, 4
call fcn.0040dbf0
mov dword [0x525130], eax
mov dword [0x525134], edx
cmp dword [0x521370], ebx
jne 0x41255a
push 0x63
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00484cd0
add esp, 0xc
push 0x64
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412542
sub eax, edx
push eax
lea edx, [ebp - 0x78]
push edx
mov ecx, 0x521360
call fcn.00402a70
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2b0], eax
cmp eax, ebx
jne 0x41256b
xor edi, edi
jmp 0x4125ac
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00481751
mov ecx, dword [ebp - 0x2b0]
add esp, 4
push ebx
push ebx
push edi
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov dword [ebp - 0x2b4], eax
mov byte [eax + edi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x2b4]
mov eax, edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4125c3
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0xb0]
call fcn.00402a70
push edi
mov byte [ebp - 4], 1
call fcn.00481b34
add esp, 4
cmp dword [0x52138c], ebx
jne 0x412643
cmp dword [ebp - 0x9c], 0x10
mov ecx, dword [ebp - 0xb0]
jae 0x412603
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x13c]
push edx
lea edi, [ebp - 0x94]
call fcn.00405f60
push eax
mov ecx, 0x52137c
mov byte [ebp - 4], 2
call fcn.00402880
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x80], edi
jb 0x412648
mov eax, dword [ebp - 0x94]
push eax
call fcn.00480d64
add esp, 4
jmp 0x412648
mov edi, 0x10
push 7
push 0x50c994
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
call fcn.00402a70
mov byte [ebp - 4], 3
push 1
push 0x50c870
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
call fcn.00402a70
mov dword [ebp - method.tpsp::CCurl.virtual_0], vtable.tpsp::CCurl.0
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
mov byte [ebp - 4], 7
push 0x31
push str.dssp.stnts.com:8888_optputmqey_tpspstartdata
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
call fcn.00402a70
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x120], bl
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0x2ac]
push str.gid
push edx
mov byte [ebp - 4], 9
call fcn.00420690
add esp, 0xc
push str.mac
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xa
call fcn.00406580
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
push eax
lea edx, [ebp - 0x200]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040d260
add esp, 0xc
push str.pcname
push eax
lea eax, [ebp - 0x190]
push eax
mov byte [ebp - 4], 0xc
call fcn.00406580
add esp, 0xc
push 0x521360
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x174]
push ecx
call fcn.0040d260
add esp, 0xc
push str.bootid
push eax
lea edx, [ebp - 0x238]
push edx
mov byte [ebp - 4], 0xe
call fcn.00406580
add esp, 0xc
push 0x52137c
push eax
lea eax, [ebp - 0x1e4]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040d260
add esp, 0xc
push str.ver
push eax
lea ecx, [ebp - 0x1c8]
push ecx
mov byte [ebp - 4], 0x10
call fcn.00406580
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
push eax
lea eax, [ebp - 0x158]
push eax
mov byte [ebp - 4], 0x11
call fcn.0040d260
add esp, 0xc
push str.isclient
push eax
lea ecx, [ebp - 0x1ac]
push ecx
mov byte [ebp - 4], 0x12
call fcn.00406580
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040d260
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0x14
call fcn.00404320
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x208], edi
jb 0x41285b
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], ebx
mov byte [ebp - 0x21c], bl
cmp dword [ebp - 0x198], edi
jb 0x412888
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x19c], ebx
mov byte [ebp - 0x1ac], bl
cmp dword [ebp - 0x144], edi
jb 0x4128b5
mov eax, dword [ebp - 0x158]
push eax
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], ebx
mov byte [ebp - 0x158], bl
cmp dword [ebp - 0x1b4], edi
jb 0x4128e2
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b8], ebx
mov byte [ebp - 0x1c8], bl
cmp dword [ebp - 0x1d0], edi
jb 0x41290f
mov edx, dword [ebp - 0x1e4]
push edx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1d0], esi
mov dword [ebp - 0x1d4], ebx
mov byte [ebp - 0x1e4], bl
cmp dword [ebp - 0x224], edi
jb 0x41293c
mov eax, dword [ebp - 0x238]
push eax
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
cmp dword [ebp - 0x160], edi
jb 0x412969
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], ebx
mov byte [ebp - 0x174], bl
cmp dword [ebp - 0x17c], edi
jb 0x412996
mov edx, dword [ebp - 0x190]
push edx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x180], ebx
mov byte [ebp - 0x190], bl
cmp dword [ebp - 0x1ec], edi
jb 0x4129c3
mov eax, dword [ebp - 0x200]
push eax
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x1f0], ebx
mov byte [ebp - 0x200], bl
cmp dword [ebp - 0x80], edi
jb 0x4129ed
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 9
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x94], bl
cmp dword [ebp - 0x298], edi
jb 0x412a17
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.00480d64
add esp, 4
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0x94]
push edx
call fcn.00404760
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x15
call fcn.004034a0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x80], edi
jb 0x412a5d
mov eax, dword [ebp - 0x94]
push eax
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 8
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x94], bl
cmp dword [ebp - 0x10c], edi
jb 0x412a87
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0xd4], edi
jb 0x412aa2
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00480d64
add esp, 4
lea ecx, [ebp - 0x290]
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
mov byte [ebp - 4], 4
call fcn.004033e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xb8], edi
jb 0x412ade
mov eax, dword [ebp - 0xcc]
push eax
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
cmp dword [ebp - 0xf0], edi
jb 0x412b0b
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.00480d64
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
cmp dword [ebp - 0x9c], edi
jb 0x412b37
mov edx, dword [ebp - 0xb0]
push edx
call fcn.00480d64
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
cmp dword [ebp - 0x128], edi
jb 0x412b67
mov eax, dword [ebp - 0x13c]
push eax
call fcn.00480d64
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004809b9
mov esp, ebp
pop ebp
ret