Function at 0x402160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40c478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
xor ebx, ebx
mov dword [edi], 0x40d15c
mov dword [esp + 0x80], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push str.C:E_SPNF01.LOG
push str.E_SPNF01
push str.softwareEPSONSTM3Debug
push 0x80000002
lea ecx, [esp + 0x154]
mov dword [esp + 0x284], ebx
call fcn.00404390
mov ecx, esi
mov byte [esp + 0x274], 1
call fcn.00401c80
push 0x20019
push ebx
push str.softwareEPSONPNOTIFY
push 0x80000002
lea ecx, [esp + 0x98]
call fcn.00404eb0
cmp dword [esp + 0x90], ebx
jne 0x402237
lea ecx, [esp + 0x88]
mov byte [esp + 0x274], 1
call fcn.00404dd0
lea ecx, [esp + 0x144]
mov byte [esp + 0x274], bl
call fcn.004041f0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
push ebp
mov ebp, 0xf
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
push 0x104
lea eax, [esp + 0x170]
push eax
push ebx
mov byte [esp + 0x284], 3
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4022b7
cmp dword [esp + 0x64], 0x10
jb 0x40227d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040582d
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x278], 1
call fcn.00404dd0
lea ecx, [esp + 0x148]
mov byte [esp + 0x278], bl
call fcn.004041f0
mov eax, edi
jmp 0x4028fe
push ebx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x94]
xor esi, esi
call fcn.004050a0
cmp dword [esp + 0x44], ebx
mov byte [esp + 0x278], 4
mov edi, 0x10
je 0x402445
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x4022f0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x90]
call fcn.00404df0
test eax, eax
je 0x4023c7
push ebx
push 0x40d1ce
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00401650
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x278], 5
jae 0x40233c
lea eax, [esp + 0x34]
push 0x100
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x9c]
call fcn.004051b0
cmp dword [esp + 0x80], edi
mov byte [esp + 0x278], 7
jb 0x402376
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jae 0x402393
lea eax, [esp + 0x18]
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.00405e15
add esp, 8
test eax, eax
je 0x402415
cmp dword [esp + 0x2c], edi
jb 0x4023bb
mov edx, dword [esp + 0x18]
push edx
call fcn.0040582d
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], edi
mov byte [esp + 0x278], 3
jb 0x4023e2
mov eax, dword [esp + 0x34]
push eax
call fcn.0040582d
add esp, 4
inc esi
push esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004050a0
cmp dword [esp + 0x44], ebx
mov byte [esp + 0x278], 4
jne 0x4022e2
jmp 0x402445
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
call fcn.00401470
cmp dword [esp + 0x2c], edi
jb 0x402439
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040582d
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], edi
mov byte [esp + 0x278], 3
jb 0x402460
mov edx, dword [esp + 0x34]
push edx
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x60], ebx
jne 0x4024ab
lea eax, [esp + 0x148]
push str.CAppInfo::CAppInfo___n
push eax
call fcn.00404180
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x154]
push str.__This_filename_is_not_found_in_registry.___s__n
push edx
call fcn.00404180
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp eax, edi
jb 0x4028c4
mov eax, dword [esp + 0x50]
push eax
jmp 0x4028bc
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x94], ebx
call fcn.00404f40
cmp dword [esp + 0x28], ebx
mov byte [esp + 0x278], 8
je 0x40289e
jmp 0x4024e0
push 0x16
push str.softwareEPSONPNOTIFY
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00401650
push 0x5c
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x280], 9
call fcn.004013a0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x74]
call fcn.00401560
cmp dword [esp + 0x80], edi
mov eax, dword [esp + 0x6c]
jae 0x402539
lea eax, [esp + 0x6c]
push 0x20019
push ebx
push eax
push 0x80000002
lea ecx, [esp + 0x40]
call fcn.00404eb0
push ebx
push 0x40d1ce
lea ecx, [esp + 0xc0]
mov byte [esp + 0x280], 0xa
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.00401650
push 0x100
lea eax, [esp + 0xbc]
push eax
push str.NOTIFYEXE
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x288], 0xb
call fcn.004051b0
cmp dword [esp + 0xd0], edi
mov byte [esp + 0x278], 0xd
jb 0x4025c9
mov edx, dword [esp + 0xbc]
push edx
call fcn.0040582d
add esp, 4
push 1
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov byte [esp + 0x1c], 0x2c
call fcn.00401070
cmp eax, 0xffffffff
jne 0x402917
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x40260e
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x60]
push ecx
push ebx
push eax
lea ecx, [esp + 0xa8]
call fcn.00401070
cmp eax, 0xffffffff
je 0x40299d
mov edx, dword [esp + 0x60]
cmp edx, dword [esp + 0xb0]
jne 0x40299d
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x284], 0xe
call fcn.00401470
push ebx
push 0x40d1ce
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.00401650
push 0x100
lea ecx, [esp + 0xd8]
push ecx
push str.TONOTIFY
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x288], 0xf
call fcn.004051b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x284], 0x10
call fcn.00401470
mov eax, dword [esp + 0x144]
mov edi, 0x10
cmp eax, edi
jb 0x40270b
mov eax, dword [esp + 0x130]
push eax
call fcn.0040582d
add esp, 4
cmp dword [esp + 0xec], edi
mov dword [esp + 0x144], ebp
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
mov byte [esp + 0x278], 0xe
jb 0x402741
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0040582d
add esp, 4
push ebx
push str.NOTIFYMETHOD
lea ecx, [esp + 0x38]
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.00404e40
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0xf0]
push edx
add ecx, 4
mov dword [esp + 0x12c], eax
call fcn.004020d0
cmp dword [esp + 0x124], edi
jb 0x40279c
mov eax, dword [esp + 0x110]
push eax
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x108], edi
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
jb 0x4027ca
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0040582d
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
jb 0x4027f8
mov edx, dword [esp + 0xa0]
push edx
call fcn.0040582d
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov byte [esp + 0x278], 9
call fcn.00404dd0
cmp dword [esp + 0x80], edi
jb 0x402834
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x278], 3
jb 0x40285e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040582d
add esp, 4
mov eax, dword [esp + 0x88]
inc eax
push ebx
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x98]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x94], eax
call fcn.00404f40
cmp dword [esp + 0x28], ebx
mov byte [esp + 0x278], 8
jne 0x4024e0
cmp dword [esp + 0x2c], edi
jb 0x4028b1
mov eax, dword [esp + 0x18]
push eax
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x64], edi
jb 0x4028c4
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040582d
add esp, 4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x278], 1
mov byte [esp + 0x50], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
call fcn.00404dd0
lea ecx, [esp + 0x148]
mov byte [esp + 0x278], bl
call fcn.004041f0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x270]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x26c
ret
mov esi, dword [esp + 0x60]
xor eax, eax
lea ecx, [ecx]
cmp dword [esp + 0x64], edi
mov ecx, dword [esp + 0x50]
jae 0x40292e
lea ecx, [esp + 0x50]
push esi
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.00401070
cmp eax, 0xffffffff
je 0x40299d
cmp eax, ebx
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xb4]
je 0x40296d
cmp edi, 0x10
mov edx, ecx
jae 0x402966
lea edx, [esp + 0xa0]
cmp byte [edx + eax - 1], 0x2c
jne 0x402995
lea edx, [esi + eax]
cmp edx, dword [esp + 0xb0]
je 0x40263b
cmp edi, 0x10
jae 0x402989
lea ecx, [esp + 0xa0]
add ecx, esi
cmp byte [ecx + eax], 0x2c
je 0x40263b
inc eax
mov edi, 0x10
jmp 0x402920
cmp dword [esp + 0xb4], edi
jb 0x4029b6
mov eax, dword [esp + 0xa0]
push eax
call fcn.0040582d
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov byte [esp + 0x278], 9
call fcn.00404dd0
cmp dword [esp + 0x80], edi
jb 0x4029f2
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0040582d
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0x278], 3
jb 0x40285e
mov edx, dword [esp + 0x18]
push edx
jmp 0x402856