Function at 0x410572
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
je 0x410d33
test esi, esi
je 0x410d33
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4105b9
sub ecx, edx
mov dword [ebp - 0x2c], ecx
lea edi, [ecx + 1]
push edi
call fcn.004188c5
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
jne 0x4105dd
push 0xfffffffffffffff3
jmp 0x410d35
push edi
push 0
push eax
call fcn.00414350
mov edi, dword [ebp - 0x2c]
push edi
push esi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0041bc30
and dword [ebp - 0x24], 0
push esi
push 0
push 1
push 3
push ebx
call fcn.004117f5
add esp, 0x2c
test edi, edi
jle 0x410d27
mov eax, dword [ebp - 0x24]
mov al, byte [esi + eax]
push eax
mov dword [ebp - 0x20], eax
call fcn.00410553
pop ecx
test eax, eax
jne 0x410d1b
mov eax, dword [ebp - 0x20]
cmp al, 0x2d
je 0x410637
cmp al, 0x2f
jne 0x410d1b
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x30]
push ecx
inc eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
add eax, esi
push ecx
push eax
call fcn.00410514
add esp, 0xc
test eax, eax
je 0x410d1b
mov esi, dword [ebp - 0x30]
push str.aztbsijeh_krxqdgumc
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x4106a8
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x410a0a
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x410d04
push 0x14
lea eax, [ebx + 0x328]
jmp 0x410cce
push 0x43d898
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x4106eb
mov esi, dword [ebp - 0x1c]
lea eax, [ebx + 0x318]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x410a0a
mov dword [ebx + 0x260], 1
jmp 0x410d1e
push 0x43d89c
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41071c
mov esi, dword [ebp - 0x1c]
lea eax, [ebx + 0x31c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x410d1e
push 0x43d8a0
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41073c
mov dword [ebx + 0x254], 1
jmp 0x410d16
push 0x43d8a4
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41075c
mov dword [ebx + 0x258], 1
jmp 0x410d16
push 0x43d8a8
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41077c
mov dword [ebx + 0x24c], 1
jmp 0x410d16
push 0x43d8ac
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41079c
mov dword [ebx + 0x3d8], 1
jmp 0x410d16
push 0x43aab4
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x4107bc
mov dword [ebx + 0x240], 1
jmp 0x410d16
push 0x43d8b0
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x4107dc
mov dword [ebx + 0x250], 1
jmp 0x410d16
push 0x43d8b4
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
je 0x410d0c
push 0x43d8b8
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
je 0x410d0c
push 0x43d8bc
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410826
mov dword [ebx + 0x248], 1
jmp 0x410d16
push 0x43d8c0
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410846
mov dword [ebx + 0x244], 1
jmp 0x410d16
push 0x43d8c4
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410866
mov dword [ebx + 0x264], 1
jmp 0x410d16
push 0x43d8c8
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410886
mov dword [ebx + 0x3f8], 1
jmp 0x410d16
push 0x43d8cc
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x4108c3
push 3
pop esi
cmp dword [ebx + 0x2c0], esi
jg 0x410d04
push 0x51
push eax
lea eax, [ebx + 0x2c4]
push eax
call fcn.00414350
add esp, 0xc
mov dword [ebx + 0x2c0], esi
jmp 0x410d16
push 0x43d8d0
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41094d
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
mov edi, dword [ebp - 0x20]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4109ff
test edi, edi
je 0x410a0a
cmp dword [ebx + 0x2c0], 4
jg 0x4109ff
push 0x51
lea esi, [ebx + 0x2c4]
push 0
push esi
call fcn.00414350
push 0x51
push edi
push esi
call fcn.0041bc30
add esp, 0x18
mov dword [ebx + 0x2c0], 4
cmp byte [esi], 0
mov esi, dword [ebp - 0x1c]
jne 0x4109ff
and dword [ebx + 0x2c0], 0
jmp 0x4109ff
push 0x43d8d4
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x41098a
push 7
pop esi
cmp dword [ebx + 0x268], esi
jg 0x410d04
push 0x51
push eax
lea eax, [ebx + 0x26c]
push eax
call fcn.00414350
add esp, 0xc
mov dword [ebx + 0x268], esi
jmp 0x410d16
push 0x43d8d8
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410a12
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
mov edi, dword [ebp - 0x20]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4109ff
test edi, edi
je 0x410a0a
cmp dword [ebx + 0x268], 8
jg 0x4109ff
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.00414350
push 0x51
push edi
push esi
call fcn.0041bc30
add esp, 0x18
mov dword [ebx + 0x268], 8
cmp byte [esi], 0
mov esi, dword [ebp - 0x1c]
jne 0x4109ff
and dword [ebx + 0x268], 0
test edi, edi
je 0x410a0a
push edi
call fcn.004188c0
pop ecx
mov edi, dword [ebp - 0x2c]
jmp 0x410d1e
push 0x43d8dc
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410a9d
cmp dword [ebx + 0x268], 6
jg 0x410d04
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x410a7f
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.00414350
push 0x51
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0041bc30
add esp, 0x18
mov dword [ebx + 0x268], 6
cmp byte [esi], 0
mov esi, dword [ebp - 0x1c]
jne 0x410a0a
and dword [ebx + 0x268], 0
jmp 0x410d1e
push 0x43d8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.004117f5
add esp, 0x14
jmp 0x410d16
push str.pofnv
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410bf6
lea esi, [ebx + 0x324]
push esi
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [esi], 0
je 0x410d04
push 0x25
push dword [esi]
call fcn.00415f90
pop ecx
pop ecx
test eax, eax
je 0x410b49
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410aea
sub ecx, edx
mov eax, 0x208
lea esi, [ecx + ecx]
cmp esi, eax
jge 0x410b01
mov esi, eax
lea eax, [esi + 2]
push 1
push eax
call fcn.004188b5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x410b43
push esi
push edi
push dword [ebx + 0x324]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x410b3c
cmp eax, esi
jge 0x410b3c
lea esi, [ebx + 0x324]
push dword [esi]
call fcn.004188c0
pop ecx
mov dword [esi], edi
jmp 0x410b49
push edi
call fcn.004188c0
pop ecx
lea esi, [ebx + 0x324]
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410b50
sub ecx, edi
cmp byte [edx + ecx - 1], 0x22
jne 0x410b7b
mov ecx, edx
mov dword [ebp - 0x20], 1
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410b6c
sub ecx, edi
mov byte [edx + ecx - 1], al
jmp 0x410b7f
and dword [ebp - 0x20], 0
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410b86
jmp 0x410bbf
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410b94
sub ecx, edi
mov byte [edx + ecx - 1], al
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410ba8
sub ecx, edi
je 0x410bc8
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410bb8
sub ecx, edi
cmp byte [edx + ecx - 1], 0x5c
je 0x410b8f
cmp dword [ebp - 0x20], 0
je 0x410d04
mov edi, dword [esi]
test edi, edi
je 0x410d04
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410bdd
mov ax, word [0x43b4bc]
mov word [edi], ax
mov edi, dword [ebp - 0x2c]
jmp 0x410d16
push 0x43d90c
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410c42
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x410a0a
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x410d04
push 0x32
lea eax, [ebx + 0x33d]
jmp 0x410cce
push 0x43d910
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410c8b
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x410a0a
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x410d04
push 0x64
lea eax, [ebx + 0x370]
jmp 0x410cce
push 0x43d914
push esi
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
jne 0x410ce0
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004103f9
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x410a0a
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x410d04
push 0x1a
lea eax, [ebx + 0x3dc]
push esi
push eax
call fcn.0041bc30
push esi
call fcn.004188c0
add esp, 0x10
jmp 0x410d16
push 0x43d918
push esi
call fcn.0041bb48
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
test eax, eax
jne 0x410a0a
mov dword [ebx + 0x504], 1
jmp 0x410d1e
mov esi, dword [ebp - 0x1c]
jmp 0x410a0a
mov dword [ebx + 0x25c], 1
mov esi, dword [ebp - 0x1c]
jmp 0x410d1e
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], edi
jl 0x410610
push esi
call fcn.004188c0
mov eax, dword [ebp - 0x28]
pop ecx
jmp 0x410d36
push 0xfffffffffffffff8
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret