Function at 0x402dc0
Capabilities:
Access peb ldr_data
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x436b90]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor eax, eax
mov esi, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 0x2000
call fcn.0040e4b1
mov dword [esp + 0x30], eax
call fcn.004126a2
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], str.DocUnins.epson.co.jp
call fcn.004126a2
call fcn.004126a2
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x44], eax
call fcn.004103c7
test eax, eax
je 0x402eb1
mov edx, dword [edi]
mov edx, dword [edx + 0x58]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 0x20080000
push 0x430094
push str.DocUnins.epson.co.jp
push ebx
mov ecx, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call edx
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x402fde
mov eax, dword [edi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00412ab3
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x402fa4
call fcn.004111f0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402eea
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], ebx
mov cx, word [edi + 0x21c]
and cx, 0x3ff
cmp cx, 0x11
jne 0x402f31
push 0x12d
call fcn.00411de4
cmp eax, ebx
je 0x402f31
push 0x12d
push eax
lea ecx, [esp + 0x18]
call fcn.004024d0
cmp eax, ebx
jne 0x402f4e
push 0x12c
call fcn.00411de4
cmp eax, ebx
je 0x402f4e
push 0x12c
push eax
lea ecx, [esp + 0x18]
call fcn.004024d0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebx
je 0x402f7c
mov eax, dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push ebx
push ebx
push 0x800
push eax
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
push ecx
push 0x10
push ebx
push eax
call esi
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x54]
cmp eax, 3
ja case.default.0x402fac
jmp dword [eax*4 + 0x402ff4]
mov ecx, dword [edi + 0x20]
push ebx
push ebx
push 0x7f00
push ecx
jmp 0x402fd8
mov edx, dword [edi + 0x20]
push ebx
push ebx
push 0x7f01
push edx
jmp 0x402fd8
mov eax, dword [edi + 0x20]
push ebx
push ebx
push 0x7f04
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret