Function at 0x40bc40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494186
mov eax, dword fs:[0]
push eax
sub esp, 0xcb0
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xca8], 0
lea ecx, [ebp - 0x1c]
call fcn.0044e010
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.0040123d
mov dword [ebp - 0x800], eax
mov dword [ebp - 0x804], 0
jmp 0x40bcad
mov eax, dword [ebp - 0x804]
add eax, 1
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
cmp dword [ebp - 0x804], eax
jae 0x40cb61
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xb
cmp dword [ebp - 0x804], eax
jae 0x40bd7e
push 0xc
push str._defbrowser_
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40bd7e
cmp dword [ebp + 0x10], 0
je 0x40bd7e
push str._defbrowser_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x80c]
call fcn.0044e010
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x80c]
push edx
push str.PreferredBrowser
push str.RealMediaSDK
push SysReAllocString
call fcn.00403c6f
add esp, 0x14
test eax, eax
je 0x40bd6a
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
push 0x4a0c2c
lea ecx, [ebp - 0x1c]
call fcn.0044e6e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80c]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xf
cmp dword [ebp - 0x804], eax
jae 0x40be6e
push 0x10
push str._alluserscommon_
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40be6e
push str._alluserscommon_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x814]
call fcn.0044e010
mov byte [ebp - 4], 3
lea edx, [ebp - 0x814]
push edx
push 0
push 0
push 0x23
push 0
call fcn.00401ce8
add esp, 0x14
lea ecx, [ebp - 0x814]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40be5a
lea ecx, [ebp - 0x814]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x814]
call fcn.00401248
movsx eax, al
cmp eax, 0x5c
je 0x40be4b
push 0x4a0930
lea ecx, [ebp - 0x814]
call fcn.0044e6e0
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x814]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 8
cmp dword [ebp - 0x804], eax
jae 0x40bf79
push 9
push str._appdata_
mov edx, dword [ebp - 0x800]
add edx, dword [ebp - 0x804]
push edx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40bf79
push str._appdata_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x81c]
call fcn.0044e010
mov byte [ebp - 4], 4
lea eax, [ebp - 0x81c]
push eax
push 0
push 0
push 0x1c
push 0
call fcn.00401ce8
add esp, 0x14
test eax, eax
jne 0x40bf03
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0x1a
push 0
call fcn.00401ce8
add esp, 0x14
lea ecx, [ebp - 0x81c]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40bf65
lea ecx, [ebp - 0x81c]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x81c]
call fcn.00401248
movsx edx, al
cmp edx, 0x5c
je 0x40bf56
push 0x4a0930
lea ecx, [ebp - 0x81c]
call fcn.0044e6e0
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x81c]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xf
cmp dword [ebp - 0x804], eax
jae 0x40c069
push 0x10
push str._system_appdata_
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40c069
push str._system_appdata_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x824]
call fcn.0044e010
mov byte [ebp - 4], 5
lea edx, [ebp - 0x824]
push edx
push 0
push 0
push 0x1a
push 0
call fcn.00401ce8
add esp, 0x14
lea ecx, [ebp - 0x824]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40c055
lea ecx, [ebp - 0x824]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x824]
call fcn.00401248
movsx eax, al
cmp eax, 0x5c
je 0x40c046
push 0x4a0930
lea ecx, [ebp - 0x824]
call fcn.0044e6e0
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x824]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xe
cmp dword [ebp - 0x804], eax
jae 0x40c159
push 0xf
push str._local_appdata_
mov edx, dword [ebp - 0x800]
add edx, dword [ebp - 0x804]
push edx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40c159
push str._local_appdata_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x82c]
call fcn.0044e010
mov byte [ebp - 4], 6
lea eax, [ebp - 0x82c]
push eax
push 0
push 0
push 0x1c
push 0
call fcn.00401ce8
add esp, 0x14
lea ecx, [ebp - 0x82c]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40c145
lea ecx, [ebp - 0x82c]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x82c]
call fcn.00401248
movsx ecx, al
cmp ecx, 0x5c
je 0x40c136
push 0x4a0930
lea ecx, [ebp - 0x82c]
call fcn.0044e6e0
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x82c]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xa
cmp dword [ebp - 0x804], eax
jae 0x40c2fb
push 0xb
push str._progfiles_
mov eax, dword [ebp - 0x800]
add eax, dword [ebp - 0x804]
push eax
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40c2fb
push str._progfiles_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x834]
call fcn.0044e010
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x834]
push ecx
push 0
push 0
push 0x26
push 0
call fcn.00401ce8
add esp, 0x14
test eax, eax
jge 0x40c285
mov dword [ebp - 0x838], 0
lea edx, [ebp - 0x838]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c285
mov dword [ebp - 0x94c], 1
mov dword [ebp - 0x948], 0x104
mov al, byte [0x4a099a]
mov byte [ebp - 0x944], al
push 0x103
push 0
lea ecx, [ebp - 0x943]
push ecx
call fcn.00470280
add esp, 0xc
lea edx, [ebp - 0x948]
push edx
lea eax, [ebp - 0x944]
push eax
lea ecx, [ebp - 0x94c]
push ecx
push 0
push str.ProgramFilesDir
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c278
lea eax, [ebp - 0x944]
push eax
lea ecx, [ebp - 0x834]
call fcn.0044e3b0
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x834]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40c2e7
lea ecx, [ebp - 0x834]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x834]
call fcn.00401248
movsx edx, al
cmp edx, 0x5c
je 0x40c2d8
push 0x4a0930
lea ecx, [ebp - 0x834]
call fcn.0044e6e0
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 0xd
cmp dword [ebp - 0x804], eax
jae 0x40c4df
push 0xe
push str._progfilesx86_
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40c4df
push str._progfilesx86_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0x954]
call fcn.0044e010
mov byte [ebp - 4], 8
lea edx, [ebp - 0x954]
push edx
push 0
push 0
push 0x26
push 0
call fcn.00401ce8
add esp, 0x14
test eax, eax
jge 0x40c469
mov dword [ebp - 0x958], 0
lea eax, [ebp - 0x958]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c469
mov dword [ebp - 0xa6c], 1
mov dword [ebp - 0xa68], 0x104
mov cl, byte [0x4a099a]
mov byte [ebp - 0xa64], cl
push 0x103
push 0
lea edx, [ebp - 0xa63]
push edx
call fcn.00470280
add esp, 0xc
lea eax, [ebp - 0xa68]
push eax
lea ecx, [ebp - 0xa64]
push ecx
lea edx, [ebp - 0xa6c]
push edx
push 0
push str.ProgramFilesDir__x86_
mov eax, dword [ebp - 0x958]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c41d
lea ecx, [ebp - 0xa64]
push ecx
lea ecx, [ebp - 0x954]
call fcn.0044e3b0
jmp 0x40c45c
lea edx, [ebp - 0xa68]
push edx
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xa6c]
push ecx
push 0
push str.ProgramFilesDir
mov edx, dword [ebp - 0x958]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c45c
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0x954]
call fcn.0044e3b0
mov ecx, dword [ebp - 0x958]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x954]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
test eax, eax
jbe 0x40c4cb
lea ecx, [ebp - 0x954]
call fcn.0040123d
push eax
call fcn.00470de0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x954]
call fcn.00401248
movsx edx, al
cmp edx, 0x5c
je 0x40c4bc
push 0x4a0930
lea ecx, [ebp - 0x954]
call fcn.0044e6e0
lea eax, [ebp - 0x954]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x954]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 9
cmp dword [ebp - 0x804], eax
jae 0x40c660
push 0xa
push str._basepath_
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40c660
push str._basepath_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
lea ecx, [ebp - 0xa74]
call fcn.0044e010
mov byte [ebp - 4], 9
push str.basepath
lea ecx, [ebp - 0xc84]
call fcn.0044e280
mov byte [ebp - 4], 0xa
push 0x4a1028
lea ecx, [ebp - 0xc8c]
call fcn.0044e280
mov byte [ebp - 4], 0xb
sub esp, 8
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x4a099a
call fcn.0044e280
mov dword [ebp - 0xcac], eax
lea edx, [ebp - 0xa74]
push edx
lea eax, [ebp - 0xc84]
push eax
lea ecx, [ebp - 0xc8c]
push ecx
call fcn.0040b2a0
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8c]
call fcn.0044e260
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc84]
call fcn.0044e260
lea ecx, [ebp - 0xa74]
call fcn.0044e020
test eax, eax
jbe 0x40c64c
push 1
lea edx, [ebp - 0xc98]
push edx
lea ecx, [ebp - 0xa74]
call fcn.0044e9d0
mov dword [ebp - 0xcb0], eax
mov eax, dword [ebp - 0xcb0]
mov dword [ebp - 0xcb4], eax
mov byte [ebp - 4], 0xc
push 0x4a0930
mov ecx, dword [ebp - 0xcb4]
push ecx
call fcn.004012cb
add esp, 8
mov byte [ebp - 0xc8d], al
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc98]
call fcn.0044e260
movzx edx, byte [ebp - 0xc8d]
test edx, edx
je 0x40c63d
push 0x4a0930
lea ecx, [ebp - 0xa74]
call fcn.0044e6e0
lea eax, [ebp - 0xa74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa74]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 4
cmp dword [ebp - 0x804], eax
jae 0x40cada
push 5
push str._app:
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
push ecx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40cada
lea ecx, [ebp - 0xa80]
call fcn.0044e010
mov byte [ebp - 4], 0xd
push str._app:
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
jmp 0x40c6d4
mov edx, dword [ebp - 0x804]
add edx, 1
mov dword [ebp - 0x804], edx
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
cmp dword [ebp - 0x804], eax
jae 0x40c719
mov eax, dword [ebp - 0x800]
add eax, dword [ebp - 0x804]
movsx ecx, byte [eax]
cmp ecx, 0x25
jne 0x40c6fc
jmp 0x40c719
mov edx, dword [ebp - 0x800]
add edx, dword [ebp - 0x804]
movzx eax, byte [edx]
push eax
lea ecx, [ebp - 0xa80]
call fcn.0044e760
jmp 0x40c6c5
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa84], 0
lea ecx, [ebp - 0xa80]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea edx, [ebp - 0xca4]
push edx
call fcn.0044eb90
add esp, 0xc
mov dword [ebp - 0xcb8], eax
mov eax, dword [ebp - 0xcb8]
mov dword [ebp - 0xcbc], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa78]
push ecx
mov ecx, dword [ebp - 0xcbc]
call fcn.0040123d
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xc99], al
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xca4]
call fcn.0044e260
movzx edx, byte [ebp - 0xc99]
test edx, edx
je 0x40c883
mov dword [ebp - 0xa88], 0
mov dword [ebp - 0xa8c], 0x104
mov al, byte [0x4a099a]
mov byte [ebp - 0xb94], al
push 0x103
push 0
lea ecx, [ebp - 0xb93]
push ecx
call fcn.00470280
add esp, 0xc
lea edx, [ebp - 0xa8c]
push edx
lea eax, [ebp - 0xb94]
push eax
lea ecx, [ebp - 0xa88]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xa78]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c876
cmp dword [ebp - 0xa8c], 0
jbe 0x40c876
mov eax, dword [ebp - 0xa8c]
sub eax, 1
mov dword [ebp - 0xb98], eax
jmp 0x40c82f
mov ecx, dword [ebp - 0xb98]
sub ecx, 1
mov dword [ebp - 0xb98], ecx
cmp dword [ebp - 0xb98], 0
jle 0x40c85d
mov edx, dword [ebp - 0xb98]
movsx eax, byte [ebp + edx - 0xb94]
cmp eax, 0x5c
jne 0x40c85b
mov ecx, dword [ebp - 0xb98]
mov byte [ebp + ecx - 0xb94], 0
jmp 0x40c85d
jmp 0x40c820
lea edx, [ebp - 0xb94]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044e6e0
mov dword [ebp - 0xa84], 1
mov eax, dword [ebp - 0xa78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa84], 0
jne 0x40c9a7
push str.realplay.exe
lea ecx, [ebp - 0xa80]
push ecx
call fcn.00401283
add esp, 8
movzx edx, al
test edx, edx
je 0x40c9a7
lea ecx, [ebp - 0xba0]
call fcn.0044e010
mov byte [ebp - 4], 0xf
push 0
lea eax, [ebp - 0xba0]
push eax
push str.MainApp
push 0x4a1080
push SysReAllocString
call fcn.00403c6f
add esp, 0x14
test eax, eax
je 0x40c993
lea ecx, [ebp - 0xba0]
push ecx
lea ecx, [ebp - 0xc08]
call fcn.004573e0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xbd0]
push edx
lea ecx, [ebp - 0xc08]
call fcn.00457440
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xbd8]
push eax
lea ecx, [ebp - 0xbd0]
call fcn.004572c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xbd8]
call fcn.0044e020
sub eax, 1
push eax
lea ecx, [ebp - 0xbd8]
call fcn.00401248
movsx ecx, al
cmp ecx, 0x5c
je 0x40c957
push 0x5c
lea ecx, [ebp - 0xbd8]
call fcn.0044e760
lea edx, [ebp - 0xbd8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbd8]
call fcn.0044e260
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xbd0]
call fcn.004572b0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc08]
call fcn.004572b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xba0]
call fcn.0044e260
jmp 0x40cac6
cmp dword [ebp - 0xa84], 0
jne 0x40cac6
push str.realdownloader.exe
lea eax, [ebp - 0xa80]
push eax
call fcn.00401283
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40cac6
lea ecx, [ebp - 0xc10]
call fcn.0044e010
mov byte [ebp - 4], 0x13
push 0
lea edx, [ebp - 0xc10]
push edx
push str.MainApp
push 0x4a105c
push SysReAllocString
call fcn.00403c6f
add esp, 0x14
test eax, eax
je 0x40cab7
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0xc78]
call fcn.004573e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xc40]
push ecx
lea ecx, [ebp - 0xc78]
call fcn.00457440
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0xc48]
push edx
lea ecx, [ebp - 0xc40]
call fcn.004572c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xc48]
call fcn.0044e020
sub eax, 1
push eax
lea ecx, [ebp - 0xc48]
call fcn.00401248
movsx eax, al
cmp eax, 0x5c
je 0x40ca7b
push 0x5c
lea ecx, [ebp - 0xc48]
call fcn.0044e760
lea ecx, [ebp - 0xc48]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044e7c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xc48]
call fcn.0044e260
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xc40]
call fcn.004572b0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xc78]
call fcn.004572b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc10]
call fcn.0044e260
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa80]
call fcn.0044e260
jmp 0x40cb5c
mov ecx, dword [ebp + 0xc]
call fcn.0044e020
sub eax, 5
cmp dword [ebp - 0x804], eax
jae 0x40cb44
push 6
push str.quot_
mov edx, dword [ebp - 0x800]
add edx, dword [ebp - 0x804]
push edx
call fcn.0048da1b
add esp, 0xc
test eax, eax
jne 0x40cb44
push str.quot_
call fcn.00470de0
add esp, 4
add eax, dword [ebp - 0x804]
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x804]
sub eax, 1
mov dword [ebp - 0x804], eax
push 0x4a0a88
lea ecx, [ebp - 0x1c]
call fcn.0044e6e0
jmp 0x40cb5c
mov ecx, dword [ebp - 0x800]
add ecx, dword [ebp - 0x804]
movzx edx, byte [ecx]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044e760
jmp 0x40bc9e
push 0x7d0
lea eax, [ebp - 0x7fc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040123d
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x7fc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044e280
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0044e1c0
mov eax, dword [ebp - 0xca8]
or eax, 1
mov dword [ebp - 0xca8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044e260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0044e260
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00470483
mov esp, ebp
pop ebp
ret