Function at 0x4098c2
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x48148f
call fcn.0046694c
sub esp, 0x138
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
call fcn.00401166
mov ebx, eax
lea eax, [ebp - 0xd]
push 1
mov esi, 0x4a9fe8
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.00401884
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
test eax, eax
mov edi, 0x48a67c
je 0x409908
mov edi, eax
lea eax, [ebp - 0xf]
push 1
push eax
push 0x49f8f4
lea ecx, [ebp - 0xc0]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40992e
mov eax, 0x48a67c
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x1c]
push 0x49f8c0
push eax
mov dword [ebp - 0x18], 0xd6
call fcn.0040a559
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp - 0xc0]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00401093
push esi
lea ecx, [ebx + 0x18]
call fcn.0040293e
lea eax, [ebp - 0xf]
push 0
mov edi, 0x48a660
mov esi, 0x48a658
push eax
push 0x4a8be0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x50], esi
call fcn.004011a9
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6dc]
mov dword [ebp - 4], 2
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48a6d4]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
mov byte [ebp - 4], 4
call fcn.0040a4f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
push 5
mov ecx, ebx
call fcn.0040a428
test al, al
jne 0x409aa7
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6dc]
call fcn.00401884
mov eax, dword [eax + 8]
mov dword [ebp - 4], 5
test eax, eax
mov esi, 0x48a67c
je 0x409a4a
mov esi, eax
lea eax, [ebp - 0xf]
push 1
push eax
push 0x49f8f4
lea ecx, [ebp - 0xc0]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x409a70
mov eax, 0x48a67c
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x1c]
push 0x49f854
push eax
mov dword [ebp - 0x18], 0xdf
call fcn.0040a559
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
jmp 0x409b00
mov ecx, dword [ebp - 0x14]
call fcn.0040a620
test al, al
push 1
jne 0x409b0c
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0xc0]
push eax
push 0x49f8f4
call fcn.00401884
mov eax, dword [eax + 8]
mov dword [ebp - 4], 7
test eax, eax
jne 0x409adc
mov eax, 0x48a67c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x49f810
push eax
mov dword [ebp - 0x18], 0xe7
call fcn.0040a559
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.00401093
xor eax, eax
jmp 0x40a3c1
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x44]
push eax
push dword [0x48a6e0]
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6e4]
mov dword [ebp - 4], 8
call fcn.00401884
push 0xa
lea eax, [ebp - 0x44]
push 0x1f40
push eax
lea eax, [ebp - 0x98]
mov ecx, ebx
push eax
mov byte [ebp - 4], 9
call fcn.0042d349
lea ecx, [ebp - 0x98]
mov dword [ebx + 0x40], eax
mov byte [ebp - 4], 8
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48a6f0]
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6d4]
mov dword [ebp - 4], 0xa
call fcn.00401884
push 0xa
lea eax, [ebp - 0x44]
push 1
push eax
lea eax, [ebp - 0x98]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0xb
call fcn.0042d349
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
push 1
pop ecx
cmp dword [ebp - 0x14], ecx
jne 0x409c15
mov eax, dword [ebx + 0x164]
cmp byte [eax + 1], 0
jne 0x409bff
cmp byte [eax + 2], 0
jne 0x409bff
mov eax, ecx
jmp 0x409c01
xor eax, eax
test al, al
sete al
test al, al
je 0x409c0f
mov dword [ebx + 0x38], ecx
jmp 0x409c20
and dword [ebx + 0x38], 0
jmp 0x409c20
push 2
pop eax
cmp dword [ebp - 0x14], eax
je 0x409c0a
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0xe]
push 0
push eax
push 0x4a8be0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x50], esi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48a6f8]
mov dword [ebp - 4], 0xc
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6d4]
mov byte [ebp - 4], 0xd
call fcn.00401884
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
push 1
mov byte [ebp - 4], 0xe
call fcn.0040a4f0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xd
call fcn.00401093
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
lea eax, [ebp - 0xe]
push 0
push eax
push 0x4a8be0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x50], esi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48a6f4]
mov dword [ebp - 4], 0xf
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x10
call fcn.00401884
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.0040a4f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x98]
call fcn.00401093
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
lea eax, [ebp - 0xe]
push 0
push eax
push 0x4a8be0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x50], esi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x48a6fc]
mov dword [ebp - 4], 0x12
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x13
call fcn.00401884
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
push 3
mov byte [ebp - 4], 0x14
call fcn.0040a4f0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x13
call fcn.00401093
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x12
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
lea eax, [ebp - 0xc0]
push 7
push eax
mov ecx, ebx
call fcn.0040a44d
cmp dword [eax + 0xc], 0
lea ecx, [ebp - 0xc0]
sete byte [ebp - 0xd]
call fcn.00402438
cmp byte [ebp - 0xd], 0
je 0x409f8e
lea eax, [ebp - 0xe]
push 0
push eax
push 0x4a8be0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], esi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0xc0]
push dword [0x48a6e8]
mov dword [ebp - 4], 0x15
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x16
call fcn.00401884
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x98]
push eax
push 7
mov byte [ebp - 4], 0x17
call fcn.0040a4f0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x16
call fcn.00401093
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x15
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x48a6a8
mov dword [ebp - 0x50], 0x48a6a0
call fcn.00403cd9
lea eax, [ebp - 0x11c]
push 0x400
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x18
call fcn.00402f01
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x19
call fcn.004042dd
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 7
mov dword [ecx + 8], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, ebx
call fcn.0040a44d
push 0x400
mov ecx, eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x1a
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x110]
call fcn.00402438
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x18
call fcn.00403013
lea eax, [ebp - 0x70]
push 0
push eax
push 7
mov ecx, ebx
call fcn.0040a3d0
cmp dword [ebx + 0x14], 5
je 0x409f82
lea eax, [ebp - 0x110]
push 7
push eax
mov ecx, ebx
call fcn.0040a44d
push 1
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.004042dd
push eax
push 0x49f80c
mov ecx, ebx
call fcn.0042c82f
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x18
call fcn.00402438
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402438
mov eax, 0x49f808
mov dword [ebp - 0x44], edi
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
jne 0x409fa4
mov eax, 0x4a8be0
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a700]
mov dword [ebp - 4], 0x1c
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0xc0]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x1d
call fcn.00401884
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0x13
mov byte [ebp - 4], 0x1e
call fcn.0040a4f0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x1d
call fcn.00401093
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x1c
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
cmp dword [ebx + 0x14], 0
jne 0x40a0ae
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x98]
push dword [0x48a6ec]
call fcn.00401884
lea eax, [ebp - 0xf]
push 1
push eax
lea ecx, [ebp - 0xc0]
push dword [0x48a6d4]
mov dword [ebp - 4], 0x1f
call fcn.00401884
push 0xa
lea eax, [ebp - 0x98]
push 0
push eax
lea eax, [ebp - 0xc0]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0x20
call fcn.0042d349
lea ecx, [ebp - 0xc0]
mov dword [ebx + 0x14], eax
mov byte [ebp - 4], 0x1f
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00401093
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0xe]
push 0
mov esi, 0x4a8be0
push eax
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
call fcn.004011a9
lea eax, [ebp - 0xf]
push 1
push eax
push 0x49f7f8
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0x21
call fcn.00401884
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0xc0]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x22
call fcn.00401884
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0xd
mov byte [ebp - 4], 0x23
call fcn.0040a4f0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x22
call fcn.00401093
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x21
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401093
lea eax, [ebp - 0xe8]
push 0xd
push eax
mov ecx, ebx
call fcn.0040a44d
cmp dword [ebp - 0xdc], 3
mov dword [ebp - 4], 0x24
jbe 0x40a3af
mov eax, 0x49f7f0
mov edi, 0x48a6a0
mov ecx, eax
mov dword [ebp - 0x44], 0x48a6a8
test ecx, ecx
mov dword [ebp - 0x24], edi
jne 0x40a189
mov eax, esi
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00404d89
lea eax, [ebp - 0x44]
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x25
call fcn.00402e4a
neg eax
sbb al, al
lea ecx, [ebp - 0x44]
inc al
mov byte [ebp - 4], 0x24
mov byte [ebp - 0xd], al
call fcn.00402438
cmp byte [ebp - 0xd], 0
je 0x40a1d1
mov byte [ebx + 0x4c], 1
jmp 0x40a340
mov eax, 0x49f7e8
mov dword [ebp - 0x70], 0x48a6a8
mov ecx, eax
mov dword [ebp - 0x50], edi
test ecx, ecx
jne 0x40a1e8
mov eax, esi
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00404d89
lea eax, [ebp - 0x70]
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x26
call fcn.00402e4a
test eax, eax
je 0x40a26c
mov eax, 0x49f7dc
mov dword [ebp - 0x44], 0x48a6a8
mov ecx, eax
mov dword [ebp - 0x24], edi
test ecx, ecx
jne 0x40a227
mov eax, esi
lea ecx, [ebp - 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00404d89
lea eax, [ebp - 0x44]
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x27
call fcn.00402e4a
neg eax
sbb al, al
lea ecx, [ebp - 0x44]
inc al
mov byte [ebp - 4], 0x26
mov byte [ebp - 0xd], al
call fcn.00402438
cmp byte [ebp - 0xd], 0
jne 0x40a26c
and byte [ebp - 0xd], 0
jmp 0x40a270
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x24
call fcn.00402438
cmp byte [ebp - 0xd], 0
je 0x40a28b
mov byte [ebx + 0x4d], 1
jmp 0x40a340
mov eax, 0x49f7d4
mov dword [ebp - 0x70], 0x48a6a8
mov ecx, eax
mov dword [ebp - 0x50], edi
test ecx, ecx
jne 0x40a2a2
mov eax, esi
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00404d89
lea eax, [ebp - 0x70]
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x28
call fcn.00402e4a
test eax, eax
je 0x40a326
mov eax, 0x49f7c8
mov dword [ebp - 0x44], 0x48a6a8
mov ecx, eax
mov dword [ebp - 0x24], edi
test ecx, ecx
jne 0x40a2e1
mov eax, esi
lea ecx, [ebp - 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00404d89
lea eax, [ebp - 0x44]
push 0
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x29
call fcn.00402e4a
neg eax
sbb al, al
lea ecx, [ebp - 0x44]
inc al
mov byte [ebp - 4], 0x28
mov byte [ebp - 0xd], al
call fcn.00402438
cmp byte [ebp - 0xd], 0
jne 0x40a326
and byte [ebp - 0xd], 0
jmp 0x40a32a
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x24
call fcn.00402438
cmp byte [ebp - 0xd], 0
je 0x40a340
mov byte [ebx + 0x4e], 1
lea eax, [ebp - 0x45]
push 1
push eax
push 0x49f7b4
lea ecx, [ebp - 0x110]
call fcn.00401884
lea eax, [ebp - 0x46]
push 1
push eax
lea ecx, [ebp - 0x144]
push dword [0x48a6d4]
mov byte [ebp - 4], 0x2a
call fcn.00401884
push 0xa
lea eax, [ebp - 0x110]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x144]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0x2b
call fcn.0042d349
lea ecx, [ebp - 0x144]
mov dword [ebx + 0x50], eax
mov byte [ebp - 4], 0x2a
call fcn.00401093
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x24
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret