Function at 0x422add
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b603
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x48c7d0]
xor eax, esp
mov dword [esp + 0x87c], eax
push esi
push edi
mov eax, dword [0x48c7d0]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
push 2
pop esi
cmp dword [ebx + 0x24], esi
jl 0x423076
push dword [ebx + 8]
push 0xffffffffffffffff
push str.ActionID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x3c], eax
cmp eax, 0x384
jne 0x422ce7
push dword [ebx + 8]
mov edi, 0x104
push edi
lea eax, [esp + 0x47c]
push eax
mov esi, 0x47741c
push esi
push 0x4789ac
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x18]
call fcn.00402773
and dword [esp + 0x898], 0
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x18]
push 0x4774a8
push eax
call fcn.0040314f
pop ecx
pop ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x34], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [ebx + 0x44]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
jne 0x422c89
push dword [ebx + 8]
lea eax, [esp + 0x68]
push edi
push eax
push esi
push str.AppPath
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x64], 0
je 0x422c89
lea eax, [esp + 0x64]
push eax
lea ecx, [ebx + 0x44]
call fcn.0040247a
lea eax, [esp + 0x64]
lea ecx, [ebx + 0x48]
push eax
call fcn.0040247a
lea ecx, [esp + 0x34]
call fcn.0042be99
mov byte [esp + 0x898], 1
mov eax, dword [ebx + 0x48]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0042bf31
lea ecx, [esp + 0x34]
test eax, eax
jne 0x422c6c
call fcn.0042ba95
push esi
lea ecx, [ebx + 0x48]
call fcn.0040247a
cmp dword [ebx + 0x3c], 0x384
jne 0x422c48
or dword [ebx + 0x3c], 0xffffffff
lea ecx, [esp + 0x34]
mov byte [esp + 0x898], 0
call fcn.0042bec2
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
xor eax, eax
jmp 0x423079
call fcn.0042ba95
lea ecx, [esp + 0x34]
mov dword [ebx + 0x58], 1
mov byte [esp + 0x898], 0
call fcn.0042bec2
push dword [ebx + 8]
lea eax, [esp + 0x68]
push edi
push eax
push esi
push str.Option
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x64]
push ecx
lea eax, [ebx + 0x50]
push 0x4774a8
push eax
call fcn.0040314f
pop ecx
pop ecx
lea eax, [ebx + 0x50]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00402877
mov eax, ebx
call fcn.00421ad8
or dword [esp + 0x898], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
jmp 0x423004
cmp eax, 0xffffffff
je 0x422ffa
lea ecx, [esp + 0x34]
call fcn.0042be99
mov dword [esp + 0x898], esi
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x24]
call fcn.00402773
mov byte [esp + 0x898], 3
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x30]
call fcn.00402773
lea esi, [esp + 0x18]
mov byte [esp + 0x898], 4
call fcn.0040830b
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x89c], 5
call fcn.0040270e
mov byte [esp + 0x898], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
push str.Epson_SoftwareEvent_ManagerResourcesApplications.adi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004017f8
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x89c], 6
call fcn.0040270e
mov byte [esp + 0x898], 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
mov esi, dword [esp + 0x20]
push 0
push esi
lea ecx, [esp + 0x3c]
call fcn.0042bf31
test eax, eax
jne 0x422de1
lea ecx, [esp + 0x34]
call fcn.0042ba95
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [esi - 0x10]
call fcn.0040285d
or dword [esp + 0x898], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0042bec2
jmp 0x422c65
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x14]
call fcn.00402773
mov byte [esp + 0x898], 7
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x18]
call fcn.00402773
lea ecx, [esp + 0x34]
mov byte [esp + 0x898], 8
call fcn.0042bb7b
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.0042c130
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x89c], 9
call fcn.0040270e
mov byte [esp + 0x898], 8
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
push 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0040692c
lea edi, [esp + 0x1c]
mov byte [esp + 0x898], 0xa
call fcn.0040ad59
push str..adi
mov ecx, edi
call fcn.00408c1b
test eax, eax
je 0x422ead
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [esp + 0x898], 4
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
jmp 0x422fc1
push 0x2e
lea ecx, [esp + 0x14]
call fcn.00406907
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402e80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x898], 0xb
call fcn.0042be99
mov byte [esp + 0x898], 0xc
mov esi, dword [esp + 0x28]
push 0
push esi
lea ecx, [esp + 0x54]
call fcn.0042bf31
test eax, eax
jne 0x422f12
lea ecx, [esp + 0x4c]
mov byte [esp + 0x898], 0xb
call fcn.0042bec2
lea ecx, [esi - 0x10]
call fcn.0040285d
jmp 0x422e81
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.0042c065
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x89c], 0xd
call fcn.0040270e
mov byte [esp + 0x898], 0xc
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040285d
mov esi, dword [esp + 0x10]
push esi
push 0xffffffffffffffff
push 0x478964
mov edi, str.Launch
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [ebx + 0x3c]
je 0x42309c
lea ecx, [esp + 0x34]
call fcn.0042be5a
test eax, eax
jne 0x422f81
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x38]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x898], 0xb
call fcn.0042bec2
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [esi - 0x10]
mov byte [esp + 0x898], 4
call fcn.0040285d
cmp dword [esp + 0x30], 0
jne 0x422de1
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040285d
or dword [esp + 0x898], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0042bec2
mov edi, 0x104
mov esi, 0x47741c
xor eax, eax
push 0x206
push eax
mov word [esp + 0x274], ax
lea eax, [esp + 0x276]
push eax
call fcn.0044de40
add esp, 0xc
push dword [ebx + 8]
lea eax, [esp + 0x270]
push edi
push eax
push esi
push str.ProjectAppName
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x24]
call fcn.004024c3
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x54]
mov dword [esp + 0x89c], 0x10
call fcn.0040270e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040285d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x87c]
xor ecx, esp
call fcn.0044d1dc
mov esp, ebp
pop ebp
ret
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x1c]
call fcn.00402773
push esi
mov esi, 0x104
push esi
lea eax, [esp + 0x6c]
push eax
push str.0x0000
push str.OptionType
mov byte [esp + 0x8ac], 0xe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call edi
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x1c]
push 0x4774a8
push eax
call fcn.0040314f
mov edx, dword [esp + 0x24]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
add esp, 0xc
test eax, eax
jl 0x42322e
cmp eax, ecx
jg 0x42322e
movzx eax, word [edx + eax*2]
push dword [esp + 0x10]
sub eax, 0x30
push esi
mov dword [ebx + 0x4c], eax
lea eax, [esp + 0x6c]
push eax
push 0x47741c
push str.Option
push str.Launch_Win
call edi
lea eax, [esp + 0x64]
lea ecx, [ebx + 0x50]
push eax
call fcn.0040247a
push dword [esp + 0x10]
lea eax, [esp + 0x478]
push esi
push eax
push 0x47741c
push 0x4789ac
push str.Launch_Win
call edi
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x28]
call fcn.00402773
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x28]
push 0x4774a8
push eax
mov byte [esp + 0x8a4], 0xf
call fcn.0040314f
pop ecx
pop ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x34], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [ebx + 0x44]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
jne 0x4231d0
push dword [esp + 0x10]
lea eax, [esp + 0x680]
push esi
push eax
push 0x47741c
push str.AppPath
push str.Launch_Win
call edi
lea eax, [esp + 0x67c]
push eax
lea ecx, [ebx + 0x44]
call fcn.0040247a
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x898], 0xb
call fcn.0042bec2
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
jmp 0x422fd1
push 0x80070057
call fcn.004027b9
int3