Function at 0x435970
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov byte [esp + 0x50], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 2
stosb byte es:[edi], al
call fcn.0044bae0
cmp eax, 0xa
jl 0x435bdf
cmp eax, 0xb
jg 0x435bdf
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
mov dword [esp + 0x2c], 4
je 0x4359de
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push str._s_s
lea edx, [esp + 0x5c]
push edx
jmp 0x435a1d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x435a07
mov word [esp + 0x158], 0x2e
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x15c]
push eax
push str._s_s
lea ecx, [esp + 0x5c]
push ecx
call fcn.00458ee7
mov ebx, dword [ebp + 8]
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push esi
lea edx, [esp + 0x64]
push edx
push esi
call dword [ebx + 0x74]
test eax, eax
jne 0x435a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x435a5d
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push eax
call fcn.00459619
mov ecx, dword [esp + 0x20]
mov esi, eax
push ecx
mov dword [esp + 0x18], esi
call fcn.00459619
add esp, 8
test esi, esi
mov edi, eax
mov dword [esp + 0x30], edi
je 0x435bd2
test edi, edi
je 0x435bc9
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
push esi
lea edx, [esp + 0x64]
push edx
push 0
call dword [ebx + 0x74]
test eax, eax
je 0x435bc3
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x44], eax
push 0x850
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x5c], eax
call dword [ebx + 0x78]
test eax, eax
jne 0x435bc9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x435bc9
xor eax, eax
push 0x477b04
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0x477b04
call fcn.0045bc17
shl eax, 1
add esp, 4
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
add eax, 2
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [ebx + 0x7c]
test eax, eax
jne 0x435b9f
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jbe 0x435b88
mov cx, word [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp word [eax + esi*8], cx
jne 0x435b7f
mov edx, dword [esp + 0x28]
mov eax, dword [eax + esi*8 + 4]
movzx ecx, cx
push ecx
push edx
push eax
call fcn.00467e62
add esp, 0xc
test eax, eax
jne 0x435b7f
mov edi, 1
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x435b51
mov eax, dword [esp + 0x18]
test eax, eax
je 0x435b97
push eax
call dword [ebx + 0x84]
test edi, edi
mov esi, dword [esp + 0x10]
jne 0x435bb2
mov edx, dword [esp + 0xc]
push 1
lea ecx, [esp + 0x28]
push ecx
push esi
push edx
call dword [ebx + 0x80]
mov eax, dword [esp + 0xc]
push eax
call dword [ebx + 0x88]
mov edi, dword [esp + 0x30]
jmp 0x435bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0045932f
add esp, 4
test edi, edi
je 0x435bdf
push edi
call fcn.0045932f
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret