Function at 0x406f3a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0043a8a0
sub esp, 4
call fcn.0043a920
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0043a980
sub esp, 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov dword [esp + 4], eax
mov dword [esp], 0x1f4
call fcn.004389b0
sub esp, 8
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x38], eax
mov edx, str.WINDIR
mov dword [esp + 8], 0x1f4
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.DLL_GetEnvironmentVariableW
sub esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
jle 0x4070fb
call fcn.0043a9d0
call fcn.0043a9d0
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], str.System32
call fcn.0043ac30
sub esp, 4
call fcn.0043ad00
call fcn.0043a9d0
mov dword [esp], str.__c_wmic
call fcn.0043ac30
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
call fcn.0043ad00
call fcn.0043a9d0
mov eax, dword [0x8dfee8]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0043ac30
sub esp, 4
call fcn.0043ab20
mov dword [ebp - 0x40], eax
call fcn.0043ab20
mov dword [ebp - 0x44], eax
call fcn.0043ab20
mov dword [ebp - 0x48], eax
mov dword [esp + 0xc], 0x2e
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0042515f
sub esp, 0x10
mov dword [ebp - 0x4c], eax
call fcn.0043aa80
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x4071cf
nop
call fcn.0043a9d0
call fcn.0043a9d0
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], str.System32
call fcn.0043ac30
sub esp, 4
call fcn.0043ad00
call fcn.0043a9d0
mov dword [esp], str.__c_wmic
call fcn.0043ac30
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], str.__FORMAT:List
call fcn.0043ac30
sub esp, 4
call fcn.0043ad00
call fcn.0043a9d0
mov eax, dword [0x8dfee8]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0043ac30
sub esp, 4
call fcn.0043ab20
mov dword [ebp - 0x50], eax
call fcn.0043ab20
mov dword [ebp - 0x54], eax
call fcn.0043ab20
mov dword [ebp - 0x58], eax
mov dword [esp + 0xc], 0x2e
mov eax, dword [ebp - 0x58]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.0042515f
sub esp, 0x10
mov dword [ebp - 0x5c], eax
call fcn.0043aa80
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 0x8e03e0
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ad30
sub esp, 8
cmp dword [ebp - 0x18], 0
je 0x40783d
mov dword [esp], 0x9c40
call fcn.0043a3f0
sub esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004256bd
sub esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4077cc
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00425704
sub esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x407759
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0042572a
sub esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40775c
call fcn.0043a9d0
call fcn.0043a9d0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
call fcn.0043aa20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x18
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call fcn.0043a5f0
sub esp, 0x10
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.004383c0
sub esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
add eax, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call fcn.0043a3f0
sub esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.004383c0
sub esp, 4
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
add eax, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call fcn.0043a3f0
sub esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x154]
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.0043a410
sub esp, 0x10
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sub.USER32.dll_OemToCharW
sub esp, 8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.004383c0
sub esp, 4
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
add eax, 4
cmp dword [ebp - 0x14], eax
jg 0x40767f
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xac], 0x6a
jne 0x407452
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x26
jne 0x407455
nop
mov dword [ebp - 0x1c], 1
jmp 0x407456
nop
jmp 0x407456
nop
cmp dword [ebp - 0x1c], 0
je 0x4074bb
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xb8], eax
mov dword [esp + 4], 0xd
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0xc0], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0xc4], eax
jmp 0x4074bc
nop
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0xcc], 0xd9
jne 0x40752f
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0x25
jne 0x407532
nop
mov dword [ebp - 0x20], 1
jmp 0x407533
nop
jmp 0x407533
nop
cmp dword [ebp - 0x20], 0
je 0x407598
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xd8], eax
mov dword [esp + 4], 0xa
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0xe0], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xe0]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0xe4], eax
jmp 0x407599
nop
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xec], 0xcb
jne 0x40760c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp], eax
call fcn.0043a560
sub esp, 4
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0x25
jne 0x40760f
nop
mov dword [ebp - 0x24], 1
jmp 0x407610
nop
jmp 0x407610
nop
cmp dword [ebp - 0x24], 0
je 0x407675
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0xf8], eax
mov dword [esp + 4], 9
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0x100], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x100]
mov dword [esp], eax
call fcn.0043a570
sub esp, 8
mov dword [ebp - 0x104], eax
jmp 0x407676
nop
add dword [ebp - 0x14], 1
jmp 0x4073b9
nop
call fcn.0043a9d0
call fcn.0043a9d0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x108], eax
call fcn.0043aa20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [esp], eax
call fcn.0043a580
sub esp, 8
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
call fcn.0043a5d0
sub esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [esp], eax
call fcn.0043a5d0
sub esp, 4
mov dword [ebp - 0x118], eax
call fcn.0043a9d0
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
mov dword [esp], 0x8dbd08
call fcn.0043ac30
sub esp, 4
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
jmp 0x40775d
nop
jmp 0x40775d
nop
mov eax, dword [0x8dfec4]
mov dword [esp], eax
call fcn.0042a620
sub esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4077c0
call fcn.0042a64e
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x407792
jmp 0x40777c
nop
call fcn.0042a64e
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4077a9
jmp 0x407793
nop
call fcn.0042a64e
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4077c6
jmp 0x4077aa
nop
jmp 0x40720a
nop
jmp 0x40720a
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call fcn.0043a5d0
sub esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00425784
sub esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x407840
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004257bb
sub esp, 4
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004257db
sub esp, 4
mov dword [ebp - 0x13c], eax
jmp 0x407841
nop
jmp 0x407841
nop
cmp dword [ebp + 0xc], 0
jle 0x40787c
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00438460
sub esp, 0xc
call fcn.0043ab20
mov dword [ebp - 0xc], eax
jmp 0x407a07
nop
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8d6188
mov dword [esp], edx
call fcn.00438df0
sub esp, 0xc
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov edx, dword [ebp - 0x14c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x8d6150
mov dword [esp + 4], 0x8da900
mov dword [esp], edx
call fcn.00439150
sub esp, 0x10
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], 0x8da900
mov dword [esp], eax
call fcn.00438ac0
sub esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x40793c
nop
jmp 0x4078c3
nop
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call fcn.00439170
sub esp, 0xc
call fcn.0043ad00
call fcn.0043aad0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], 0x8d6150
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call fcn.0043acc0
test eax, eax
je 0x4079e7
call fcn.0043a9d0
call fcn.0043a9d0
call fcn.0043aa20
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.00438ba0
sub esp, 0xc
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
jmp 0x4079e8
nop
call fcn.0043a9d0
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
call fcn.0043ab20
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0xc