Function at 0x401e90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push ebx
push esi
push edi
mov edi, 1
push edi
push str.icountry
push str.intl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov esi, eax
push 0x94
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb4], 4
jb 0x401efd
cmp dword [ebp - 0xa8], 2
jne 0x401efd
mov dword [ebp - 4], edi
cmp si, 0x51
jne 0x401f10
mov byte [ebp - 0xc], 0x80
mov dword [ebp - 8], 0x4031d0
jmp 0x401f29
mov eax, dword [ebp - 4]
mov byte [ebp - 0xc], 0
test eax, eax
mov dword [ebp - 8], str.Monotype_Sans_WT_J
jne 0x401f29
mov dword [ebp - 8], str.Helv
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x401f36
mov dword [0x404064], edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x13
call esi
test eax, eax
jne 0x401f67
push 0xe
call esi
shl eax, 1
push edi
mov ebx, eax
call esi
sub eax, ebx
push eax
push 0xd
call esi
shl eax, 1
push 0
mov edi, eax
call esi
sub eax, edi
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push 0x12
push 2
push 0
and eax, 0xff
and esi, 0xffff
push 0
push eax
lea esi, [esi*8 + 0x48]
mov eax, 0xc71c71c7
imul esi
sar edx, 4
push 0
push 0
mov ecx, edx
push 0
push 0x190
push 0
shr ecx, 0x1f
push 0
add edx, ecx
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [0x40405c], eax
je 0x401fdd
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40207a
push 0x200
lea edx, [ebp - 0x2f0]
push 0
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f0]
push 0x200
push eax
push str.NotesLogo
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push str.NotesLogo
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40233e
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
call ebx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x2f0]
mov dword [eax + 0x18], ecx
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [eax + 0x24], edx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x300b
mov dword [eax + 4], 0x401b00
call dword [sym.imp.USER32.dll_RegisterClassW]
jmp 0x4020c9
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40233e
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
call ebx
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [eax + 0x18], edx
mov dword [eax + 0x24], str.NotesLogo
mov dword [eax + 0x10], ecx
mov dword [eax], 0x300b
mov dword [eax + 4], 0x401b00
call dword [sym.imp.USER32.dll_RegisterClassA]
mov si, ax
push edi
and esi, 0xffff
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x40233e
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
mov dword [0x40404c], edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], eax
test ecx, ecx
mov dword [0x404054], ecx
je 0x402118
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x14], eax
jmp 0x40211f
mov dword [ebp + 0x14], 0
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x404058], eax
call ebx
mov edi, dword [ebp - 4]
mov esi, eax
test edi, edi
mov bl, 0x7c
je 0x402177
mov ecx, dword [ebp + 0x10]
push 0x200
push esi
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
add eax, eax
test ax, ax
je 0x4021e5
mov ecx, eax
and ecx, 0xffff
cmp byte [ecx + esi - 2], 0x20
jne 0x4021a9
add eax, 0xfffe
test ax, ax
jne 0x40215c
jmp 0x4021a9
mov edx, dword [ebp + 0x10]
push 0x400
push esi
push 1
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test ax, ax
je 0x4021e5
mov edx, eax
and edx, 0xffff
cmp byte [edx + esi - 1], 0x20
jne 0x4021c8
add eax, 0xffff
test ax, ax
jne 0x40218e
jmp 0x4021e5
test ax, ax
je 0x4021e5
mov ecx, eax
and ecx, 0xffff
cmp byte [ecx + esi - 2], bl
jne 0x4021e5
add eax, 0xfffe
test ax, ax
jne 0x4021ae
jmp 0x4021e5
test ax, ax
je 0x4021e5
mov edx, eax
and edx, 0xffff
cmp byte [edx + esi - 1], bl
jne 0x4021e5
add eax, 0xffff
test ax, ax
jne 0x4021cd
and eax, 0xffff
test edi, edi
mov byte [eax + esi], 0
je 0x402216
mov al, byte [esi]
xor ecx, ecx
test al, al
je 0x40223a
mov eax, esi
cmp byte [eax], bl
jne 0x402203
mov byte [eax], 0x20
add ecx, 2
mov eax, ecx
and eax, 0xffff
add eax, esi
cmp byte [eax], 0
jne 0x4021fc
jmp 0x40223a
mov al, byte [esi]
xor ecx, ecx
test al, al
je 0x40223a
mov eax, esi
cmp byte [eax], bl
jne 0x402227
mov byte [eax], 0x20
inc ecx
mov edx, ecx
and edx, 0xffff
lea eax, [edx + esi]
mov dl, byte [edx + esi]
test dl, dl
jne 0x402220
mov eax, dword [0x404058]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x404060]
test eax, eax
jne 0x402268
mov ecx, dword [ebp + 0xc]
push 0x404044
push 2
push ecx
call fcn.00402350
test eax, eax
mov dword [0x404060], eax
je 0x40227d
lea edx, [ebp - 0x24]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
jmp 0x402281
xor edi, edi
xor ebx, ebx
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 0xf0]
push eax
mov word [0x404052], di
mov word [0x404040], bx
push esi
and edi, 0xffff
and ebx, 0xffff
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4022bb
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 8]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, edi
push 1
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, 0x55555556
sub ecx, ebx
push 0
imul ecx
mov ecx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 8]
push ecx
push 0
push eax
push ebx
push edi
push edx
push esi
push 0x80000000
push 0x4031d0
push str.NotesLogo
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp + 0x20]
mov esi, eax
test esi, esi
mov dword [ecx], esi
je 0x40233e
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c