Function at 0x12f434
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x12f43c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x12f6d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x12f479
lea edx, [ebp - 0x14]
mov eax, 0x12f6e8
call fcn.00031d88
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0004c428
mov bl, 1
xor ecx, ecx
push ebp
push 0x12f64e
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [0x2a894c], 0
jne 0x12f4a6
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x12bd18]
call fcn.0012be64
mov dword [0x2a894c], eax
mov eax, dword [0x2a894c]
cmp byte [eax + 0x24], 0
je 0x12f4db
cmp dword [ebp - 4], 0
je 0x12f644
lea edx, [ebp - 0x1c]
mov eax, 0x12f700
call fcn.00031d88
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0004c428
jmp 0x12f644
mov eax, 0x12be14
call fcn.00126614
mov dword [0x2a8950], eax
mov edx, 0x64
mov eax, 0x31f87c
mov dword [eax], 0xffffffff
xor ecx, ecx
mov dword [eax + 8], ecx
add eax, 0x2870
dec edx
jne 0x12f4f4
lea eax, [ebp - 0x20]
call fcn.0012fa5c
mov edx, dword [ebp - 0x20]
mov eax, 0x2a88e8
call fcn.00013c90
mov eax, dword [ebp - 4]
call fcn.0012f38c
test al, al
je 0x12f5f3
mov eax, dword [ebp - 4]
call fcn.001291f8
mov eax, dword [ebp - 4]
call fcn.00128db4
lea eax, [ebp - 0xa]
call fcn.0012f93c
mov ebx, eax
test ebx, ebx
je 0x12f582
cmp dword [ebp - 4], 0
je 0x12f582
lea edx, [ebp - 0x28]
mov eax, 0x12f710
call fcn.00031d88
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0002b100
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0004ced0
movzx edx, word [ebp - 0xa]
mov eax, dword [0x2a894c]
call fcn.00128808
mov dl, 1
mov eax, dword [0x2a894c]
call fcn.001287b8
lea eax, [ebp - 8]
mov edx, pe_nt_image_headers32
call fcn.00014200
lea eax, [ebp - 8]
call fcn.0001409c
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00012b94
push 0xff
mov eax, dword [ebp - 8]
call fcn.00014090
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x12f5ec
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.000332b8
mov edx, dword [ebp - 0x30]
mov eax, 0x2a88c0
call fcn.00013c90
mov al, 1
call fcn.0012feac
mov eax, dword [0x2a894c]
mov bl, byte [eax + 0x24]
mov byte [0x2a8954], 0
xor eax, eax
mov dword [0x2a8958], eax
mov byte [0x2a8960], 0
xor eax, eax
mov dword [0x2a895c], eax
push 0x12f148
push 0x32
push 1
push 0
call sub.user32.dll_SetTimer
mov dword [0x2a8958], eax
push 0x12f1ec
push 0x3e8
push 1
push 0
call sub.user32.dll_SetTimer
mov dword [0x2a895c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x12f67b
cmp dword [ebp - 4], 0
je 0x12f6b3
lea edx, [ebp - 0x40]
mov eax, 0x12f744
call fcn.00031d88
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0002d050
mov edx, dword [ebp - 0x44]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0004c428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12f6dd
lea eax, [ebp - 0x44]
mov edx, 0xe
call fcn.00013c60
lea eax, [ebp - 8]
call fcn.00013c3c
ret