Function at 0x40c020
Capabilities:
Check os version
Create process on windows
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f3c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.CMainFrame::DeleteRegSIDM_n
mov dword [esp + 0x6c], edi
call fcn.00403770
add esp, 4
push 0x4202b4
lea ecx, [esp + 0x1c]
xor esi, esi
xor ebp, ebp
call fcn.00402390
push 0x4202b4
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c0], esi
mov dword [esp + 0x3c], esi
call fcn.00402390
push 0x4202b4
lea ecx, [esp + 0x38]
mov byte [esp + 0x3c0], 1
mov dword [esp + 0x68], esi
call fcn.00402390
push 0x4202b4
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c0], 2
mov dword [esp + 0x50], esi
call fcn.00402390
add edi, 0x8c
push edi
lea eax, [esp + 0x90]
push str.SoftwareEPSONSTM3Driver_
push eax
mov byte [esp + 0x3c8], 3
call fcn.004025b0
add esp, 0xc
push 0x20019
push esi
push esi
mov ecx, eax
mov byte [esp + 0x3c8], 4
call fcn.00402cb0
push eax
push 0x80000002
lea ecx, [esp + 0x8c]
call fcn.00413990
lea ecx, [esp + 0x8c]
mov byte [esp + 0x3bc], 6
call fcn.00401910
cmp dword [esp + 0x80], esi
jne 0x40c132
push esi
push 0x50
push 3
call fcn.00403950
add esp, 0xc
jmp 0x40c32d
push 0x4202b4
lea ecx, [esp + 0x18]
call fcn.00402390
push 0x100
lea ecx, [esp + 0x18]
push ecx
push str.SHELLEXT_R
lea edx, [esp + 0x28]
mov bl, 7
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x3cc], bl
call fcn.00413720
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c0], 8
call fcn.00401940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 6
call fcn.00401910
push 0x4202b4
lea ecx, [esp + 0x18]
call fcn.00402390
push 0x100
lea eax, [esp + 0x18]
push eax
push str.PNOTIFY_R
lea ecx, [esp + 0x28]
push ecx
mov bl, 9
lea ecx, [esp + 0x88]
mov byte [esp + 0x3cc], bl
call fcn.00413720
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c0], 0xa
call fcn.00401940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 6
call fcn.00401910
push 0x4202b4
lea ecx, [esp + 0x18]
call fcn.00402390
push 0x100
lea edx, [esp + 0x18]
push edx
push str.Type
lea eax, [esp + 0x28]
mov bl, 0xb
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x3cc], bl
call fcn.00413720
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x3c0], 0xc
call fcn.00401940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 6
call fcn.00401910
push 0x4202b4
lea ecx, [esp + 0x18]
call fcn.00402390
mov bl, 0xd
mov byte [esp + 0x3bc], bl
push 0x100
lea ecx, [esp + 0x18]
push ecx
push str.SIDMSRV_NAME
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x88]
call fcn.00413720
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c0], 0xe
call fcn.00401940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 6
call fcn.00401910
push 0x20019
push esi
push esi
push str.SoftwareEPSONSTM3Driver
push 0x80000002
lea ecx, [esp + 0xac]
call fcn.00413990
cmp dword [esp + 0xa0], esi
mov byte [esp + 0x3bc], 0xf
jne 0x40c39d
push esi
push 0x51
push 3
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 0x98]
mov byte [esp + 0x3bc], 6
call fcn.00413420
lea ecx, [esp + 0x78]
mov byte [esp + 0x3bc], 3
call fcn.00413420
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3bc], 2
call fcn.00401910
lea ecx, [esp + 0x34]
mov byte [esp + 0x3bc], 1
call fcn.00401910
lea ecx, [esp + 0x20]
mov byte [esp + 0x3bc], 0
call fcn.00401910
lea ecx, [esp + 0x18]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00401910
xor eax, eax
mov ecx, dword [esp + 0x3b4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x30]
call fcn.004017b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3bc], 0x10
call fcn.004017b0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x3c8], 0x11
call fcn.004134c0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x3c0], 0x12
call fcn.00401940
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 0x11
call fcn.00401910
lea ecx, [esp + 0x30]
call fcn.00401d50
test eax, eax
jne 0x40c77e
mov bl, 0x15
lea ebx, [ebx]
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00401660
add esp, 8
test al, al
je 0x40c735
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x8c]
push str.SoftwareEPSONSTM3Driver_
push eax
call fcn.004025b0
add esp, 0xc
push 0x20019
push 0
push 0
mov ecx, eax
mov byte [esp + 0x3c8], 0x13
call fcn.00402cb0
push eax
push 0x80000002
lea ecx, [esp + 0x50]
call fcn.00413990
lea ecx, [esp + 0x88]
mov byte [esp + 0x3bc], bl
call fcn.00401910
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40c495
push 0
push 0x52
push 3
call fcn.00403950
add esp, 0xc
jmp 0x40c724
lea ecx, [esp + 0x18]
call fcn.00401d50
test eax, eax
jne 0x40c535
test ebp, ebp
jne 0x40c535
push 0x4202b4
lea ecx, [esp + 0x74]
call fcn.00402390
push 0x100
lea ecx, [esp + 0x74]
push ecx
push str.SHELLEXT_R
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3cc], 0x16
call fcn.00413720
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c0], 0x17
call fcn.00401940
lea ecx, [esp + 0x94]
mov byte [esp + 0x3bc], 0x16
call fcn.00401910
lea ecx, [esp + 0x70]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401570
add esp, 8
test al, al
je 0x40c535
mov ebp, 1
lea ecx, [esp + 0x20]
call fcn.00401d50
test eax, eax
jne 0x40c5dc
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40c5dc
push 0x4202b4
lea ecx, [esp + 0x78]
call fcn.00402390
push 0x100
lea edx, [esp + 0x78]
push edx
push str.PNOTIFY_R
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3cc], 0x18
call fcn.00413720
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c0], 0x19
call fcn.00401940
lea ecx, [esp + 0x90]
mov byte [esp + 0x3bc], 0x18
call fcn.00401910
lea ecx, [esp + 0x74]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00401570
add esp, 8
test al, al
je 0x40c5dc
mov dword [esp + 0x38], 1
lea ecx, [esp + 0x34]
call fcn.00401d50
test eax, eax
jne 0x40c67d
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40c67d
push 0x4202b4
lea ecx, [esp + 0x70]
call fcn.00402390
push 0x100
lea eax, [esp + 0x70]
push eax
push str.Type
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3cc], 0x1a
call fcn.00413720
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c0], 0x1b
call fcn.00401940
lea ecx, [esp + 0x60]
mov byte [esp + 0x3bc], 0x1a
call fcn.00401910
lea ecx, [esp + 0x6c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00401570
add esp, 8
test al, al
je 0x40c67d
mov dword [esp + 0x64], 1
mov ecx, dword [esp + 0x68]
add ecx, 0xe0
call fcn.00401d50
test eax, eax
jne 0x40c724
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40c724
push 0x4202b4
lea ecx, [esp + 0x20]
call fcn.00402390
push 0x100
lea ecx, [esp + 0x20]
push ecx
push str.SIDMSRV_NAME
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3cc], 0x1c
call fcn.00413720
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c0], 0x1d
call fcn.00401940
lea ecx, [esp + 0x28]
mov byte [esp + 0x3bc], 0x1c
call fcn.00401910
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], bl
call fcn.00401910
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00401570
add esp, 8
test al, al
je 0x40c724
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3bc], 0x11
call fcn.00413420
push 0
inc esi
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa4]
call fcn.004134c0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x3c0], 0x12
call fcn.00401940
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 0x11
call fcn.00401910
lea ecx, [esp + 0x30]
call fcn.00401d50
test eax, eax
je 0x40c410
lea ecx, [esp + 0x18]
call fcn.00401d50
test eax, eax
jne 0x40ca71
test ebp, ebp
jne 0x40ca71
push 0xf003f
push ebp
push ebp
push str.CLSID
push 0x80000000
lea ecx, [esp + 0x64]
call fcn.00413990
mov eax, dword [esp + 0x58]
test eax, eax
mov byte [esp + 0x3bc], 0x1e
je 0x40c7d4
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x54]
call fcn.00413a10
push 0xf003f
push 0
push 0
push str.Printers_shellexPropertySheetHandlers
push 0x80000000
lea ecx, [esp + 0xcc]
call fcn.00413990
mov eax, dword [esp + 0xc0]
test eax, eax
mov byte [esp + 0x3bc], 0x1f
je 0x40c81c
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xbc]
call fcn.00413a10
push 0xf003f
push 0
push 0
push str.Printers_shellexCopyHookHandlers
push 0x80000000
lea ecx, [esp + 0x10c]
call fcn.00413990
mov eax, dword [esp + 0x100]
test eax, eax
mov byte [esp + 0x3bc], 0x20
je 0x40c864
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xfc]
call fcn.00413a10
push 0xf003f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push 0x80000002
lea ecx, [esp + 0xbc]
call fcn.00413990
mov eax, dword [esp + 0xb0]
test eax, eax
mov byte [esp + 0x3bc], 0x21
je 0x40c8ac
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xac]
call fcn.004136f0
mov ebp, dword [esp + 0x68]
mov eax, dword [ebp + 0xf4]
test eax, eax
je 0x40ca22
push 0xf013f
push 0
push 0
push str.CLSID
push 0x80000000
lea ecx, [esp + 0xfc]
call fcn.00413990
mov eax, dword [esp + 0xf0]
test eax, eax
mov byte [esp + 0x3bc], 0x22
je 0x40c906
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xec]
call fcn.00413a10
push 0xf013f
push 0
push 0
push str.Printers_shellexPropertySheetHandlers
push 0x80000000
lea ecx, [esp + 0xdc]
call fcn.00413990
mov eax, dword [esp + 0xd0]
test eax, eax
mov byte [esp + 0x3bc], 0x23
je 0x40c94e
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xcc]
call fcn.00413a10
push 0xf013f
push 0
push 0
push str.Printers_shellexCopyHookHandlers
push 0x80000000
lea ecx, [esp + 0xec]
call fcn.00413990
mov eax, dword [esp + 0xe0]
test eax, eax
mov bl, 0x24
mov byte [esp + 0x3bc], bl
je 0x40c997
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0xdc]
call fcn.00413a10
push 0xf013f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push 0x80000002
lea ecx, [esp + 0x50]
call fcn.00413990
mov eax, dword [esp + 0x44]
test eax, eax
mov byte [esp + 0x3bc], 0x25
je 0x40c9d6
lea ecx, [esp + 0x18]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x40]
call fcn.004136f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3bc], bl
call fcn.00413420
lea ecx, [esp + 0xd8]
mov byte [esp + 0x3bc], 0x23
call fcn.00413420
lea ecx, [esp + 0xc8]
mov byte [esp + 0x3bc], 0x22
call fcn.00413420
lea ecx, [esp + 0xe8]
mov byte [esp + 0x3bc], 0x21
call fcn.00413420
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3bc], 0x20
call fcn.00413420
lea ecx, [esp + 0xf8]
mov byte [esp + 0x3bc], 0x1f
call fcn.00413420
lea ecx, [esp + 0xb8]
mov byte [esp + 0x3bc], 0x1e
call fcn.00413420
lea ecx, [esp + 0x50]
mov byte [esp + 0x3bc], 0x11
call fcn.00413420
jmp 0x40ca75
mov ebp, dword [esp + 0x68]
lea ecx, [esp + 0x20]
call fcn.00401d50
test eax, eax
jne 0x40cd1d
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40cd1d
push 0xf003f
push 0
push 0
push str.SoftwareEPSONPNOTIFY
push 0x80000002
lea ecx, [esp + 0x50]
call fcn.00413990
mov eax, dword [esp + 0x44]
test eax, eax
mov byte [esp + 0x3bc], 0x26
je 0x40cc84
lea ecx, [esp + 0x14]
call fcn.004017b0
xor esi, esi
push esi
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c8], 0x27
call fcn.004134c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c0], 0x28
call fcn.00401940
lea ecx, [esp + 0x38]
mov byte [esp + 0x3bc], 0x27
call fcn.00401910
lea ecx, [esp + 0x14]
call fcn.00401d50
test eax, eax
jne 0x40cc60
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push str.SoftwareEPSONPNOTIFY_
push edx
call fcn.004025b0
add esp, 0xc
push 0xf003f
push 0
push 0
mov ecx, eax
mov byte [esp + 0x3c8], 0x29
call fcn.00402cb0
push eax
push 0x80000002
lea ecx, [esp + 0x64]
call fcn.00413990
lea ecx, [esp + 0x28]
mov byte [esp + 0x3bc], 0x2b
call fcn.00401910
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40cc09
push 0x4202b4
lea ecx, [esp + 0x20]
call fcn.00402390
push 0x100
lea eax, [esp + 0x20]
push eax
push str.NOTIFYEXE
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x3cc], 0x2c
call fcn.00413720
mov ecx, eax
mov byte [esp + 0x3bc], 0x2d
call fcn.00402cb0
push eax
lea ecx, [esp + 0x24]
call fcn.00401540
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x60]
inc bl
mov byte [esp + 0x3bc], 0x2c
call fcn.00401910
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3bc], 0x2b
call fcn.00401910
test bl, bl
je 0x40cc09
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x40]
call fcn.00413a10
dec esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x3bc], 0x27
call fcn.00413420
push 0
inc esi
push esi
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
call fcn.004134c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c0], 0x28
call fcn.00401940
lea ecx, [esp + 0x38]
mov byte [esp + 0x3bc], 0x27
call fcn.00401910
lea ecx, [esp + 0x14]
call fcn.00401d50
test eax, eax
je 0x40cb20
lea ecx, [esp + 0x20]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x40]
call fcn.004136f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3bc], 0x26
call fcn.00401910
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
call fcn.004135f0
push 0x4202b4
push eax
mov byte [esp + 0x3c4], 0x2e
call fcn.004015c0
add esp, 8
lea ecx, [esp + 0x28]
mov bl, al
mov byte [esp + 0x3bc], 0x26
call fcn.00401910
test bl, bl
je 0x40cd0c
push 0xf003f
push 0
push 0
push str.SoftwareEPSON
push 0x80000002
lea ecx, [esp + 0x64]
call fcn.00413990
mov eax, dword [esp + 0x58]
test eax, eax
mov byte [esp + 0x3bc], 0x2f
je 0x40ccfb
push str.PNOTIFY
lea ecx, [esp + 0x54]
call fcn.00413a10
lea ecx, [esp + 0x50]
mov byte [esp + 0x3bc], 0x26
call fcn.00413420
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3bc], 0x11
call fcn.00413420
lea ecx, [esp + 0x2c]
call fcn.00401d50
test eax, eax
jne 0x40cec7
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40cec7
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1a0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x118], 2
jne 0x40cd77
cmp dword [esp + 0x10c], 6
jae 0x40cd8c
push 0x104
lea edx, [esp + 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40ce08
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x2a8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
push eax
push 0x23
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40ce08
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2a8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40ce08
push str.STM3_SIDMAgent
push str.EPSON
lea ecx, [esp + 0x2b0]
push ecx
push str._s_s_s
lea edx, [esp + 0x1b0]
push 0x104
push edx
call fcn.0040bd90
add esp, 0x18
test eax, eax
je 0x40ce08
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1a0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1a0]
test eax, eax
je 0x40cec7
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, eax
push edx
lea esi, [ebp + 0xe4]
push str._s_s
push esi
call fcn.004021f0
add esp, 0x10
lea eax, [esp + 0x2c]
lea edi, [ebp + 0xe0]
push eax
mov ecx, edi
call fcn.00401940
mov ecx, dword [edi]
push ecx
push str.CMainFrame::DeleteRegSIDM___Execute_sidm_service_:__s_n
call fcn.00403770
push 0x4222f0
lea edx, [esp + 0x34]
push esi
push edx
call fcn.004024e0
add esp, 0x14
push 5
mov ecx, eax
mov byte [esp + 0x3c0], 0x30
call fcn.00402cb0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x3bc], 0x11
call fcn.00401910
cmp esi, 0x20
jae 0x40ceb0
push esi
push str.CMainFrame::DeleteRegSIDM___Execute_error_:__d_n
call fcn.00403770
push 0
push 0xc
push 4
call fcn.00403950
add esp, 0x14
jmp 0x40cec7
push str.CMainFrame::DeleteRegSIDM___Execute_sidm_service_:_complete_n
call fcn.00403770
add esp, 4
mov dword [ebp + 0xd0], 1
lea ecx, [esp + 0x34]
call fcn.00401d50
test eax, eax
jne 0x40cf3d
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40cf3d
mov eax, dword [ebp + 0xd0]
test eax, eax
je 0x40cef2
mov dword [ebp + 0xdc], 1
jmp 0x40cf3d
push 0xf003f
push 0
push 0
push str.SoftwareEPSONSTM3
push 0x80000002
lea ecx, [esp + 0x64]
call fcn.00413990
mov eax, dword [esp + 0x58]
test eax, eax
mov byte [esp + 0x3bc], 0x31
je 0x40cf2c
push str.SIDMCommon
lea ecx, [esp + 0x54]
call fcn.00413a10
lea ecx, [esp + 0x50]
mov byte [esp + 0x3bc], 0x11
call fcn.00413420
push str.CMainFrame::DeleteRegSIDM_exit_n
call fcn.00403770
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x3bc], 0x10
call fcn.00401910
lea ecx, [esp + 0x30]
mov byte [esp + 0x3bc], 0xf
call fcn.00401910
lea ecx, [esp + 0x98]
mov byte [esp + 0x3bc], 6
call fcn.00413420
lea ecx, [esp + 0x78]
mov byte [esp + 0x3bc], 3
call fcn.00413420
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3bc], 2
call fcn.00401910
lea ecx, [esp + 0x34]
mov byte [esp + 0x3bc], 1
call fcn.00401910
lea ecx, [esp + 0x20]
mov byte [esp + 0x3bc], 0
call fcn.00401910
lea ecx, [esp + 0x18]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x3b4]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret