Function at 0x406f1b
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.0043a880
sub esp, 4
call fcn.0043a900
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0043a960
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.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
mov dword [esp + 4], eax
mov dword [esp], 0x1f4
call fcn.00438990
sub esp, 8
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ab80
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 0x4070dc
call fcn.0043a9b0
call fcn.0043a9b0
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], str.System32
call fcn.0043ac10
sub esp, 4
call fcn.0043ace0
call fcn.0043a9b0
mov dword [esp], str.__c_wmic
call fcn.0043ac10
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
call fcn.0043ace0
call fcn.0043a9b0
mov eax, dword [0x8dff28]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0043ac10
sub esp, 4
call fcn.0043ab00
mov dword [ebp - 0x40], eax
call fcn.0043ab00
mov dword [ebp - 0x44], eax
call fcn.0043ab00
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.0042513f
sub esp, 0x10
mov dword [ebp - 0x4c], eax
call fcn.0043aa60
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x4071b0
nop
call fcn.0043a9b0
call fcn.0043a9b0
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], str.System32
call fcn.0043ac10
sub esp, 4
call fcn.0043ace0
call fcn.0043a9b0
mov dword [esp], str.__c_wmic
call fcn.0043ac10
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], str.__FORMAT:List
call fcn.0043ac10
sub esp, 4
call fcn.0043ace0
call fcn.0043a9b0
mov eax, dword [0x8dff28]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], str.cmd.exe
call fcn.0043ac10
sub esp, 4
call fcn.0043ab00
mov dword [ebp - 0x50], eax
call fcn.0043ab00
mov dword [ebp - 0x54], eax
call fcn.0043ab00
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.0042513f
sub esp, 0x10
mov dword [ebp - 0x5c], eax
call fcn.0043aa60
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 0x8e0420
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ad10
sub esp, 8
cmp dword [ebp - 0x18], 0
je 0x40781e
mov dword [esp], 0x9c40
call fcn.0043a3d0
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.0042569d
sub esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4077ad
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004256e4
sub esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40773a
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.0042570a
sub esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40773d
call fcn.0043a9b0
call fcn.0043a9b0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
call fcn.0043aa00
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.0043a5d0
sub esp, 0x10
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.004383a0
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.0043a3d0
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.004383a0
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.0043a3d0
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.0043a3f0
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.004383a0
sub esp, 4
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
add eax, 4
cmp dword [ebp - 0x14], eax
jg 0x407660
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.0043a540
sub esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xac], 0x6a
jne 0x407433
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.0043a540
sub esp, 4
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x26
jne 0x407436
nop
mov dword [ebp - 0x1c], 1
jmp 0x407437
nop
jmp 0x407437
nop
cmp dword [ebp - 0x1c], 0
je 0x40749c
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.0043a550
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.0043a550
sub esp, 8
mov dword [ebp - 0xc4], eax
jmp 0x40749d
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.0043a540
sub esp, 4
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0xcc], 0xd9
jne 0x407510
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.0043a540
sub esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0x25
jne 0x407513
nop
mov dword [ebp - 0x20], 1
jmp 0x407514
nop
jmp 0x407514
nop
cmp dword [ebp - 0x20], 0
je 0x407579
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.0043a550
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.0043a550
sub esp, 8
mov dword [ebp - 0xe4], eax
jmp 0x40757a
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.0043a540
sub esp, 4
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xec], 0xcb
jne 0x4075ed
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.0043a540
sub esp, 4
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0x25
jne 0x4075f0
nop
mov dword [ebp - 0x24], 1
jmp 0x4075f1
nop
jmp 0x4075f1
nop
cmp dword [ebp - 0x24], 0
je 0x407656
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.0043a550
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.0043a550
sub esp, 8
mov dword [ebp - 0x104], eax
jmp 0x407657
nop
add dword [ebp - 0x14], 1
jmp 0x40739a
nop
call fcn.0043a9b0
call fcn.0043a9b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x108], eax
call fcn.0043aa00
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [esp], eax
call fcn.0043a560
sub esp, 8
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
call fcn.0043a5b0
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.0043a5b0
sub esp, 4
mov dword [ebp - 0x118], eax
call fcn.0043a9b0
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
mov dword [esp], 0x8dbd48
call fcn.0043ac10
sub esp, 4
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
jmp 0x40773e
nop
jmp 0x40773e
nop
mov eax, dword [0x8dff04]
mov dword [esp], eax
call fcn.0042a600
sub esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4077a1
call fcn.0042a62e
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x407773
jmp 0x40775d
nop
call fcn.0042a62e
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x40778a
jmp 0x407774
nop
call fcn.0042a62e
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x4077a7
jmp 0x40778b
nop
jmp 0x4071eb
nop
jmp 0x4071eb
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call fcn.0043a5b0
sub esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00425764
sub esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x407821
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0042579b
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.004257bb
sub esp, 4
mov dword [ebp - 0x13c], eax
jmp 0x407822
nop
jmp 0x407822
nop
cmp dword [ebp + 0xc], 0
jle 0x40785d
call fcn.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
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.00438440
sub esp, 0xc
call fcn.0043ab00
mov dword [ebp - 0xc], eax
jmp 0x4079e8
nop
call fcn.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8d61c8
mov dword [esp], edx
call fcn.00438dd0
sub esp, 0xc
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
call fcn.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
mov edx, dword [ebp - 0x14c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x8d6190
mov dword [esp + 4], 0x8da940
mov dword [esp], edx
call fcn.00439130
sub esp, 0x10
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], 0x8da940
mov dword [esp], eax
call fcn.00438aa0
sub esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x40791d
nop
jmp 0x4078a4
nop
call fcn.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call fcn.00439150
sub esp, 0xc
call fcn.0043ace0
call fcn.0043aab0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], 0x8d6190
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call fcn.0043aca0
test eax, eax
je 0x4079c8
call fcn.0043a9b0
call fcn.0043a9b0
call fcn.0043aa00
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.00438b80
sub esp, 0xc
call fcn.0043aa00
mov dword [esp + 4], eax
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ab80
sub esp, 8
jmp 0x4079c9
nop
call fcn.0043a9b0
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac10
sub esp, 4
call fcn.0043ab00
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call fcn.0043ac70
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ac70
sub esp, 4
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
call fcn.0043ac70
sub esp, 4
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call fcn.0043ac70
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0xc