Function at 0x10041ca
Capabilities:
Check if file exists
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10017bc
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [0x1009488], eax
je 0x1004218
push 0x10017a0
call esi
cmp eax, ebx
mov dword [0x1009484], eax
je 0x1004218
push ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004218
mov esi, dword [ebp + 8]
push esi
call fcn.01003d57
test eax, eax
jne 0x100421f
xor eax, eax
jmp 0x10045ee
push edi
push 0x29
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
neg eax
sbb eax, eax
add eax, 0x7f01
push eax
push ebx
call edi
push 0x7f02
push ebx
mov dword [0x1009b88], eax
call edi
push 0x1001790
push esi
mov dword [0x1009b84], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp dword [0x1009b84], ebx
mov dword [0x10096d8], eax
je 0x10045eb
cmp eax, ebx
je 0x10045eb
cmp dword [ebp + 0xc], ebx
jne 0x1004284
call fcn.01004143
test eax, eax
je 0x10045eb
mov dword [0x1009b80], esi
mov dword [0x10094a0], 0x54
mov dword [0x10094a8], ebx
mov dword [0x10094ac], ebx
mov dword [0x10094dc], esi
call fcn.010018df
call fcn.01003972
push ebx
push esi
push ebx
push ebx
push dword [0x1008a50]
mov esi, 0x1001384
push dword [0x1008a54]
push dword [0x1008a5c]
push dword [0x1008a58]
push 0xcf0000
push esi
push str.Notepad
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, eax
cmp edx, ebx
mov dword [0x1008810], edx
mov dword [0x10094a4], edx
je 0x10045eb
mov eax, 0x80000000
cmp dword [0x1008a54], eax
je 0x1004356
cmp dword [0x1008a50], eax
je 0x1004356
xor eax, eax
push 0xb
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [0x1008a58]
mov ecx, dword [0x1008a54]
mov dword [ebp - 0x3c], eax
add eax, ecx
mov ecx, dword [0x1008a50]
mov dword [ebp - 0x34], eax
mov eax, dword [0x1008a5c]
mov dword [ebp - 0x38], eax
add eax, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
push eax
push edx
mov dword [ebp - 0x58], 0x2c
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov edx, dword [0x1008810]
push 1
push edx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x2c]
push eax
push dword [0x1008810]
call edi
mov eax, dword [ebp - 0x20]
push ebx
push dword [ebp + 8]
add eax, 0xffffff9c
push 0xf
push dword [0x1008810]
push eax
push dword [ebp - 0x24]
mov eax, dword [0x1008830]
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfff00000
add eax, 0x50300104
push eax
push esi
push 0x1001784
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [0x1008818], eax
je 0x10045eb
mov eax, dword [0x1008820]
neg eax
push 0x401
push dword [0x1008810]
sbb eax, eax
and eax, 0x10000000
push esi
or eax, 0x44800000
push eax
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
cmp eax, ebx
mov dword [0x1008814], eax
je 0x10045eb
push 1
call fcn.01001b9a
lea eax, [ebp - 0x1c]
push eax
push dword [0x1008814]
call edi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 4
mov dword [0x10096e0], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
pop ecx
lea eax, [eax + eax*2]
cdq
idiv ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 2
push 0x404
push dword [0x1008814]
call esi
push ebx
push dword [0x1008830]
push 0xc8
push dword [0x1008818]
call esi
cmp dword [0x1008830], ebx
je 0x1004477
push dword [0x1008810]
call dword [sym.imp.USER32.dll_GetMenu]
push 1
push 0x1b
push 3
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x2d0
push 0x5a
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov edi, 0x1009b20
push edi
mov dword [0x1009b20], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push dword [ebp - 4]
mov dword [0x1009b7c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x98]
push eax
push 0x20
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x1009b3c
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004519
push edi
push 0x1004130
push 0x1009b3c
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_EnumFontsW]
push dword [0x1009b7c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x1009b7c], eax
push ebx
push dword [0x1009b7c]
push 0x30
push dword [0x1008818]
call esi
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 2
push 0x42
mov word [0x1009800], bx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push ebx
push 0xc5
push dword [0x1008818]
mov dword [0x1009b8c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [0x1008028]
call fcn.01001c5b
push dword [ebp + 0x14]
push dword [0x1008810]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1009b88]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0x10]
call fcn.01003e0f
or dword [0x1008a60], 0xffffffff
mov ecx, 0x100177c
mov edi, eax
call fcn.01003c15
test eax, eax
jne 0x10045aa
mov dword [0x1008a60], ebx
jmp 0x10045cd
mov eax, edi
mov ecx, 0x1001774
call fcn.01003c15
test eax, eax
jne 0x10045c4
mov dword [0x1008a60], 1
cmp dword [0x1008a60], 0xffffffff
je 0x10045d8
add edi, 4
push edi
call fcn.01003e0f
mov edi, eax
push edi
call fcn.01003e29
cmp eax, ebx
je 0x10045f4
cmp eax, 2
jne 0x10046d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0x14]
push edi
call fcn.01003f7f
test eax, eax
je 0x1004616
push ebx
push ebx
push 0x10
push dword [0x1008810]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x10045ed
cmp word [edi], bx
je 0x10046d0
push edi
mov edi, 0x1009900
push edi
call fcn.01003c5b
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1009480], eax
jne 0x10046c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100469d
push 0x33
push edi
push dword [0x1008020]
push dword [0x100803c]
push dword [0x1008810]
call fcn.01001f55
cmp eax, 2
je 0x10045eb
cmp eax, 6
jne 0x10046bb
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1009480], eax
jmp 0x10046bb
push edi
call fcn.01004a24
push dword [0x1008028]
call fcn.01001c5b
push dword [0x1008028]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x1009480], 0xffffffff
je 0x10046d0
push dword [0x1008a60]
push edi
call fcn.01004d75
push 0x10095e0
call fcn.010040d7
push 0x1009540
call fcn.010040d7
mov edx, dword [0x1008810]
push 0x16
pop ecx
xor eax, eax
push 0xa
mov edi, 0x1009680
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [0x1009688], eax
xor eax, eax
mov edi, 0x1009500
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0xb0
push dword [0x1008818]
mov dword [0x1009680], 0x58
mov dword [0x1009684], edx
mov dword [0x10096a0], 0x104
mov dword [0x1009500], 0x28
mov dword [0x1009504], edx
call esi
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0xb1
push dword [0x1008818]
call esi
push ebx
push ebx
push 0xb7
push dword [0x1008818]
call esi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and ax, 0x3ff
cmp ax, 0x11
jne 0x1004611
push 1
push 1
push 0xd8
push dword [0x1008818]
call esi
jmp 0x1004611