Function at 0x40bfe0
Capabilities:
Get hostname
Query environment variable

Disassembly:
sub esp, 0x38
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0x34], eax
xor eax, eax
push ebp
xor ebp, ebp
cmp ebx, eax
push edi
mov edi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x20], 0x10
je 0x40c89b
cmp edi, eax
je 0x40c89b
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c030
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x1c], eax
call fcn.0040f141
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40c06b
pop esi
pop edi
mov eax, 0xfffffff3
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040f6db
add esp, 0x38
ret
mov eax, dword [esp + 0x14]
push esi
push 0
push eax
call fcn.0040eb90
mov esi, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.0040f940
push edi
push 0
push 1
push 3
push ebx
mov dword [esp + 0x3c], ebp
call fcn.0040e6f0
add esp, 0x2c
test esi, esi
jle 0x40c73d
mov edx, dword [esp + 0x10]
movzx ecx, byte [edi + edx]
push ecx
call fcn.0040b8e0
add esp, 4
test eax, eax
je 0x40c0c5
add edx, 1
mov dword [esp + 0x10], edx
jmp 0x40c72f
cmp cl, 0x2d
je 0x40c0db
cmp cl, 0x2f
je 0x40c0db
add edx, 1
mov dword [esp + 0x10], edx
jmp 0x40c72f
lea ecx, [esp + 0x20]
push ecx
add edx, 1
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + edx]
push ecx
mov dword [esp + 0x1c], edx
call fcn.0040b900
add esp, 0xc
test eax, eax
je 0x40c891
mov esi, dword [esp + 0x20]
push 0x4272c4
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c168
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c727
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40c727
push 0x14
lea ecx, [ebx + 0x328]
push esi
push ecx
call fcn.0040f940
push esi
call fcn.0040e862
add esp, 0x10
jmp 0x40c72f
push 0x4272c0
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c1b0
mov eax, dword [esp + 0x18]
lea edx, [ebx + 0x318]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c727
mov dword [ebx + 0x260], 1
jmp 0x40c72f
push 0x4272bc
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c1e6
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x31c]
push ecx
push edx
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x1c], ebp
jmp 0x40c72f
push 0x4272b8
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c207
mov dword [ebx + 0x254], 1
jmp 0x40c72f
push 0x4272b4
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c228
mov dword [ebx + 0x258], 1
jmp 0x40c72f
push 0x4272b0
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c249
mov dword [ebx + 0x24c], 1
jmp 0x40c72f
push 0x4272ac
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c26a
mov dword [ebx + 0x3d8], 1
jmp 0x40c72f
push 0x4233ac
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c28b
mov dword [ebx + 0x240], 1
jmp 0x40c72f
push 0x4272a8
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c2ac
mov dword [ebx + 0x250], 1
jmp 0x40c72f
push 0x4272a4
push esi
call fcn.0041060f
add esp, 8
test eax, eax
je 0x40c882
push 0x4272a0
push esi
call fcn.0041060f
add esp, 8
test eax, eax
je 0x40c882
push 0x42729c
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c2f9
mov dword [ebx + 0x248], 1
jmp 0x40c72f
push 0x427298
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c31a
mov dword [ebx + 0x244], 1
jmp 0x40c72f
push 0x427294
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c33b
mov dword [ebx + 0x264], 1
jmp 0x40c72f
push 0x427290
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c35c
mov dword [ebx + 0x3f8], 1
jmp 0x40c72f
push 0x42728c
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c39c
cmp dword [ebx + 0x2c0], 3
jg 0x40c727
push 0x51
push eax
lea eax, [ebx + 0x2c4]
push eax
call fcn.0040eb90
add esp, 0xc
mov dword [ebx + 0x2c0], 3
jmp 0x40c72f
push 0x427288
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c43b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push edx
push eax
lea esi, [esp + 0x1c]
call fcn.0040b950
mov edi, dword [esp + 0x18]
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c425
test edi, edi
je 0x40c727
cmp dword [ebx + 0x2c0], 4
jg 0x40c425
push 0x51
lea esi, [ebx + 0x2c4]
push 0
push esi
call fcn.0040eb90
push 0x51
push edi
push esi
call fcn.0040f940
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x2c0], 4
jne 0x40c425
mov dword [ebx + 0x2c0], 0
test edi, edi
je 0x40c727
push edi
call fcn.0040e862
add esp, 4
jmp 0x40c72b
push 0x427284
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c47b
cmp dword [ebx + 0x268], 7
jg 0x40c727
push 0x51
push eax
lea ecx, [ebx + 0x26c]
push ecx
call fcn.0040eb90
add esp, 0xc
mov dword [ebx + 0x268], 7
jmp 0x40c72f
push 0x427280
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c515
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
lea esi, [esp + 0x1c]
call fcn.0040b950
mov edi, dword [esp + 0x18]
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c425
test edi, edi
je 0x40c727
cmp dword [ebx + 0x268], 8
jg 0x40c425
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.0040eb90
push 0x51
push edi
push esi
call fcn.0040f940
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x268], 8
jne 0x40c425
mov dword [ebx + 0x268], 0
jmp 0x40c425
push str.cmugdqxrk_hejisbtza
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c5ac
cmp dword [ebx + 0x268], 6
jg 0x40c727
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40c58e
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.0040eb90
push 0x51
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0040f940
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x268], 6
jne 0x40c727
mov dword [ebx + 0x268], 0
jmp 0x40c72f
push 0x427254
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.0040e6f0
add esp, 0x14
jmp 0x40c72f
push 0x427250
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c75a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ebp, [ebx + 0x324]
push ebp
push edx
push eax
lea esi, [esp + 0x1c]
call fcn.0040b950
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x40c727
push 0x25
push eax
call fcn.0040f700
add esp, 8
test eax, eax
je 0x40c65d
mov eax, dword [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c603
sub eax, edx
lea esi, [eax + eax]
cmp esi, 0x208
jge 0x40c61e
mov esi, 0x208
lea ecx, [esi + 2]
push 1
push ecx
call fcn.004108ec
mov edi, eax
add esp, 8
test edi, edi
je 0x40c65d
mov edx, dword [ebp]
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40c654
cmp eax, esi
jge 0x40c654
mov eax, dword [ebp]
push eax
call fcn.0040e862
mov dword [ebp], edi
jmp 0x40c65a
push edi
call fcn.0040e862
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c665
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x40c695
mov eax, ecx
mov dword [esp + 0xc], 1
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c684
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x40c69d
mov dword [esp + 0xc], 0
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c6a5
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x40c702
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c6c0
sub eax, esi
mov byte [ecx + eax - 1], dl
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c6d7
sub eax, esi
je 0x40c702
mov esi, ecx
mov eax, ecx
lea edi, [eax + 1]
jmp 0x40c6f0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c6f0
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x40c6b7
cmp dword [esp + 0xc], 0
je 0x40c727
mov edi, dword [ebp]
test edi, edi
je 0x40c727
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c713
mov cx, word [0x42488c]
mov word [edi], cx
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jl 0x40c0a4
push edi
call fcn.0040e862
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040f6db
add esp, 0x38
ret
push 0x42724c
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c7b6
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c727
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40c727
push 0x32
lea ecx, [ebx + 0x33d]
push esi
push ecx
call fcn.0040f940
push esi
call fcn.0040e862
add esp, 0x10
jmp 0x40c72f
push 0x427248
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c81a
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c727
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40c727
push 0x64
lea ecx, [ebx + 0x370]
push esi
push ecx
call fcn.0040f940
push esi
call fcn.0040e862
add esp, 0x10
jmp 0x40c72f
push str.nfop
push esi
call fcn.0041060f
add esp, 8
test eax, eax
jne 0x40c727
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.0040b950
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40c727
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40c727
push 0x1a
lea ecx, [ebx + 0x3dc]
push esi
push ecx
call fcn.0040f940
push esi
call fcn.0040e862
add esp, 0x10
jmp 0x40c72f
mov dword [ebx + 0x25c], 1
jmp 0x40c72f
add dword [esp + 0x10], 1
jmp 0x40c72f
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
xor ecx, esp
mov eax, 0xfffffff8
call fcn.0040f6db
add esp, 0x38
ret