Function at 0x436690
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439851
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x44b680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x10]
call fcn.00402540
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402540
mov byte [ebp - 4], 1
push str._ProgramFiles_Epson_SoftwareDownload_Navigator
lea ecx, [ebp - 0x10]
call fcn.00401d90
mov dword [ebp - 0x14], 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.004022f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x436712
mov dword [ebp - 0x14], 0
jmp 0x436936
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402940
push eax
lea ecx, [ebp - 0x10]
call fcn.004022f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.004025d0
lea ecx, [ebp - 0x1c]
call fcn.00401430
movzx edx, al
test edx, edx
je 0x43675a
mov dword [ebp - 0x14], 0
jmp 0x436936
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x38]
call fcn.00406c6b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00402a40
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00402120
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.VERINFO.ESI
call fcn.00401db0
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 2
call fcn.00437d50
add esp, 0xc
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00401430
movzx eax, al
test eax, eax
je 0x4367d6
mov dword [ebp - 0x14], 0
jmp 0x43691e
mov dword [ebp - 0x3c], 0
push 0x4401d4
lea ecx, [ebp - 0x40]
call fcn.00401db0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.004022f0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x40]
call fcn.00402940
push eax
push 0x4401d8
push str.ExecuteName
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.004025d0
lea ecx, [ebp - 0x40]
call fcn.00401430
movzx ecx, al
test ecx, ecx
je 0x436844
mov dword [ebp - 0x14], 0
jmp 0x436912
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x54]
call fcn.00406c6b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.00402a40
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402120
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00402120
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 6
call fcn.00437d50
add esp, 0xc
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x94]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402480
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call fcn.004024a0
mov ecx, dword [ebp + 8]
call fcn.00401430
movzx eax, al
test eax, eax
jne 0x4368f2
mov dword [ebp - 0x14], 1
jmp 0x436906
push 0x440204
mov ecx, dword [ebp + 8]
call fcn.00401d90
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00406e48
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004024a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004024a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00406e48
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004024a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004024a0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4