Function at 0x40a572
Capabilities:
Get hostname
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [0x972eac], eax
xor eax, eax
push ebx
push ebp
mov ebp, 0x23dd
mov dword [esp + 0x18], ebp
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x3034
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0x2e56
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, 0x36f2
push esi
push edi
cmp dword [esp + 0x20], eax
jge 0x40a61e
add dword [esp + 0x18], 0xfffffeb6
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
add ebx, 0x322e
mov esi, dword [esp + 0x20]
sub edi, 0x9f1
mov edx, dword [esp + 0x30]
add esi, 0x1f9
mov ecx, dword [esp + 0x14]
sub edx, 0x3ca
mov eax, dword [esp + 0x14]
add ecx, ebp
add eax, 0x20d0
push eax
push ecx
push edx
push esi
push edi
push 0x972dc8
push ebx
call fcn.0040b670
mov dword [esp + 0x2c], eax
add esp, 0x1c
xor dword [esp + 0x10], 0x525
xor dword [esp + 0x20], 0x82a
mov eax, dword [esp + 0x14]
add eax, 0x2627
cmp dword [esp + 0x10], eax
je 0x40a796
xor dword [esp + 0x14], 0x25d6
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
add dword [esp + 0x18], 0x344
add dword [esp + 0x30], 0x1de
add dword [esp + 0x10], 0xfffff974
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add ebx, 0x1d6
mov esi, dword [esp + 0x14]
add edi, 0x2eea
mov edx, dword [esp + 0x30]
xor esi, 0xbe1
mov ecx, dword [esp + 0x1c]
xor edx, 0x15e2
mov eax, dword [esp + 0x30]
add ecx, 0x2fa8
sub eax, 0xc57
push eax
push ecx
push 0x972dc8
push edx
push esi
push edi
push ebx
call fcn.004091e5
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x4c]
add ebp, 0x429
mov edi, dword [esp + 0x4c]
add ebx, 0x6be
mov esi, dword [esp + 0x34]
add edi, 0x50a
mov ecx, dword [esp + 0x3c]
sub esi, 0xb5
mov eax, dword [esp + 0x2c]
add ecx, 0x25f
mov edx, dword [0x93537c]
xor eax, 0x383e
push eax
push ecx
push edx
push esi
push edi
push ebx
push ebp
call fcn.00409408
mov dword [esp + 0x48], eax
mov ebp, 0x972dc8
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
xor esi, 0x2c0a
mov ecx, dword [esp + 0x4c]
xor edx, 0x144
mov eax, dword [esp + 0x4c]
add ecx, 0x880
xor eax, 0x15e2
push eax
push ecx
push ebp
push edx
push esi
call fcn.0040765b
mov dword [esp + 0x64], eax
add esp, 0x4c
xor dword [esp + 0x1c], 0x2a8c
mov eax, 0x16b
xor dword [esp + 0x30], 0x2bf5
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x30]
xor ebx, 0x3468
mov esi, dword [esp + 0x20]
add edi, 0x8a4
mov edx, dword [esp + 0x1c]
sub esi, eax
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x1c]
add ecx, 0x1bb
add eax, 0x51c
push ebp
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.00409ad7
add esp, 0x1c
mov dword [esp + 0x30], eax
jmp 0x40a868
mov eax, dword [0x93537c]
mov ecx, dword [esp + 0x30]
and ecx, dword [eax + 0x60]
cmp dword [esp + 0x20], ecx
jne 0x40a7e1
mov eax, dword [0x93537c]
mov ecx, dword [eax + 0xac]
and ecx, dword [eax + 0x80]
imul eax, dword [esp + 0x14], 0x2465
xor dword [0x972e6c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
mov eax, 0xffffd058
or ecx, dword [esp + 0x10]
sub eax, ecx
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ecx, dword [0x972ea4]
mov edi, dword [0x93537c]
sub ecx, eax
mov eax, dword [esp + 0x1c]
add ebp, ecx
mov edx, dword [esp + 0x14]
add eax, 0xffffd409
imul ecx, dword [0x972e90], 0x2e56
or edx, eax
mov eax, dword [esp + 0x30]
add eax, dword [0x972e44]
mov esi, dword [0x972df4]
or eax, 0x2627
mov ebx, dword [0x972de8]
xor esi, 0x2e37
sub ebx, dword [edi + 0x58]
push eax
push ecx
push edx
push esi
push edi
push ebx
push ebp
call fcn.0040937e
mov ecx, dword [0x93537c]
add esp, 0x1c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x10]
xor eax, ecx
xor eax, dword [0x972e34]
mov dword [esp + 0x10], eax
mov eax, dword [0x93537c]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_ExitProcess]