Function at 0x40ae8c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push edi
mov byte [ebp - 0x42c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x42b]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x214], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x320], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x31f]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x10c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x430], ecx
mov word [ebp - 0x218], 0
mov dword [ebp - 0x438], 0
cmp dword [ebp + 0xc], 0
jne 0x40af23
xor eax, eax
jmp 0x40b59d
push 0x104
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0040b5f0
add esp, 0xc
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040b630
add esp, 4
lea edx, [ebp - 0x214]
push edx
call fcn.0040a745
add esp, 4
push eax
call fcn.0040a6cd
add esp, 4
mov eax, dword [ebp - 0x434]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b546
mov edx, dword [ebp - 0x434]
mov al, byte [edx]
mov byte [ebp - 0x43c], al
cmp byte [ebp - 0x43c], 0x25
je 0x40aff2
cmp byte [ebp - 0x43c], 0x2f
je 0x40af9f
jmp 0x40b508
movsx ecx, word [ebp - 0x218]
test ecx, ecx
jne 0x40afed
mov edx, dword [ebp + 0x14]
and edx, 1
test edx, edx
je 0x40afd5
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x434]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x430]
add eax, 1
mov dword [ebp - 0x430], eax
jmp 0x40afed
mov ecx, dword [ebp - 0x430]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 0x430]
add edx, 1
mov dword [ebp - 0x430], edx
jmp 0x40b532
movsx eax, word [ebp - 0x218]
test eax, eax
jne 0x40b01d
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 4], ecx
mov dx, word [ebp - 0x218]
add dx, 1
mov word [ebp - 0x218], dx
jmp 0x40b506
movsx eax, word [ebp - 0x218]
cmp eax, 1
jne 0x40b506
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5f0
add esp, 0xc
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x31f], 0
push str._WINDIR_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b08f
lea eax, [ebp - 0x42c]
push eax
push 0
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._SYSDIR_
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b0c0
lea edx, [ebp - 0x42c]
push edx
push 1
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._TMPDIR_
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b0f1
lea ecx, [ebp - 0x42c]
push ecx
push 2
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._CURDIR_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b124
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x324]
call fcn.0040cdb6
jmp 0x40b4ca
push str._CURFILE_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b157
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x324]
call fcn.0040cd0e
jmp 0x40b4ca
push str._CURBASE_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b18a
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x324]
call fcn.0040ccd2
jmp 0x40b4ca
push str._CURSTARTUP_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b1bb
lea eax, [ebp - 0x42c]
push eax
push 3
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._COMSTARTUP_
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b1ec
lea edx, [ebp - 0x42c]
push edx
push 4
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._CURDESKTOP_
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b21d
lea ecx, [ebp - 0x42c]
push ecx
push 5
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._COMDESKTOP_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b24e
lea eax, [ebp - 0x42c]
push eax
push 6
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._CURPROGRAMS_
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b27f
lea edx, [ebp - 0x42c]
push edx
push 7
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._COMPROGRAMS_
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b2b0
lea ecx, [ebp - 0x42c]
push ecx
push 8
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._CURSTARTMENU_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b2e1
lea eax, [ebp - 0x42c]
push eax
push 9
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._COMSTARTMENU_
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b312
lea edx, [ebp - 0x42c]
push edx
push 0xa
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._PROGRAMFILES_
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b343
lea ecx, [ebp - 0x42c]
push ecx
push 0xb
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._CURMYDOCUMENTS_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b374
lea eax, [ebp - 0x42c]
push eax
push 0xc
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._SYSDRIVER_
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b3a5
lea edx, [ebp - 0x42c]
push edx
push 0xe
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._RECYCLE_
lea eax, [ebp - 0x320]
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x40b3d6
lea ecx, [ebp - 0x42c]
push ecx
push 0xd
lea ecx, [ebp - 0x324]
call fcn.0040c9cc
jmp 0x40b4ca
push str._BLURFILE_
lea edx, [ebp - 0x320]
push edx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x40b4b4
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0041dfb0
add esp, 8
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040b5f0
add esp, 0xc
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 4]
mov byte [ebp + edx - 0x321], 0
push 0x104
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40b478
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040b5f0
add esp, 0xc
jmp 0x40b4b2
lea edx, [ebp - 0x42c]
test edx, edx
je 0x40b4b2
lea eax, [ebp - 0x42c]
push eax
call fcn.0041df30
add esp, 4
movsx ecx, byte [ebp + eax - 0x42d]
cmp ecx, 0x5c
je 0x40b4b2
push 0x42d584
lea edx, [ebp - 0x42c]
push edx
call fcn.0041dfc0
add esp, 8
jmp 0x40b4ca
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0041dfb0
add esp, 8
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x430]
push eax
call fcn.0041dfb0
add esp, 8
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0041df30
add esp, 4
mov edx, dword [ebp - 0x430]
add edx, eax
mov dword [ebp - 0x430], edx
mov word [ebp - 0x218], 0
jmp 0x40b532
movsx eax, word [ebp - 0x218]
test eax, eax
jne 0x40b532
mov ecx, dword [ebp - 0x430]
mov edx, dword [ebp - 0x434]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x430]
add ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x434]
add edx, 1
mov dword [ebp - 0x434], edx
jmp 0x40af69
movsx eax, word [ebp - 0x218]
cmp eax, 1
jne 0x40b588
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call fcn.0041dfb0
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.0041df30
add esp, 4
mov ecx, dword [ebp - 0x430]
add ecx, eax
mov dword [ebp - 0x430], ecx
mov word [ebp - 0x218], 0
mov edx, dword [ebp - 0x430]
mov byte [edx], 0
movsx eax, word [ebp - 0x218]
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret