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

Disassembly:
push edi
call fcn.01002749
cmp eax, ebx
jne 0x100580c
push dword [ebp + 0x10]
push edi
call fcn.0100278d
test eax, eax
jne 0x100581a
cmp word [edi], bx
jne 0x1003a2c
push 0x50
push 0x100c880
call fcn.01001e7a
push 0x50
push 0x100c7e0
call fcn.01001e7a
push 0x58
pop edi
push edi
push ebx
push 0x100c1a0
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x54]
mov edx, dword [0x100c020]
add esp, 0xc
push 0xa
pop ecx
mov dword [0x100c1a8], eax
mov dword [0x100c1a0], edi
xor eax, eax
mov edi, 0x100c0c0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0xb0
push dword [0x100c028]
mov dword [0x100c1a4], edx
mov dword [0x100c1c0], 0x104
mov dword [0x100c0c0], 0x28
mov dword [0x100c0c4], edx
call esi
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 0xb1
push dword [0x100c028]
call esi
push ebx
push ebx
push 0xb7
push dword [0x100c028]
call esi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0x3ff
cmp ax, 0x11
je 0x10058ae
call fcn.01001ed7
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001568
leave
ret 0xc
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x100c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10026f8
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
call edi
xor ebx, ebx
mov dword [0x100c07c], eax
cmp eax, ebx
je 0x1003a80
push 0x10026dc
call edi
mov dword [0x100c078], eax
cmp eax, ebx
je 0x1003a80
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x1003a80
push esi
call fcn.010033c1
test eax, eax
je 0x1003a80
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f01
push ebx
call edi
push 0x7f02
push ebx
mov dword [0x100c094], eax
call edi
push 0x10026cc
push esi
mov dword [0x100c090], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x100c080], eax
cmp dword [0x100c090], ebx
je 0x1003a80
cmp eax, ebx
je 0x1003a80
call fcn.0100332f
mov dword [0x100c08c], esi
mov dword [0x100c140], 0x54
mov dword [0x100c148], ebx
mov dword [0x100c14c], ebx
mov dword [0x100c17c], esi
call fcn.01002ad3
call fcn.01002c27
push ebx
push esi
push ebx
push ebx
push dword [0x100c04c]
mov edi, 0x10015c0
push dword [0x100c050]
push dword [0x100c058]
push dword [0x100c054]
push 0xcf0000
push edi
push 0x10033ac
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [0x100c020], esi
mov dword [0x100c144], esi
cmp esi, ebx
je 0x1003a80
mov eax, 0x80000000
cmp dword [0x100c058], eax
je 0x1002488
cmp dword [0x100c054], eax
je 0x1002488
push 0x2c
lea eax, [ebp - 0xa8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
push esi
mov dword [ebp - 0xa8], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, 0x100c100
test eax, eax
je 0x1002475
push 0x2c
push ebx
push esi
call sub.msvcrt.dll_memset
mov eax, dword [0x100c054]
mov dword [0x100c11c], eax
sub eax, dword [ebp - 0x8c]
add esp, 0xc
add eax, dword [ebp - 0x84]
mov dword [0x100c100], 0x2c
mov dword [0x100c124], eax
mov eax, dword [0x100c058]
mov dword [0x100c120], eax
sub eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x80]
mov dword [0x100c128], eax
push esi
push dword [0x100c020]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov esi, dword [0x100c020]
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x7c]
push eax
push dword [0x100c020]
call esi
mov eax, dword [ebp - 0x70]
push ebx
push dword [ebp - 0x54]
add eax, 0xffffff9c
push 0xf
push dword [0x100c020]
push eax
push dword [ebp - 0x74]
mov eax, dword [0x100c034]
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfff00000
add eax, 0x50300104
push eax
push edi
push 0x1002ac4
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100c028], eax
cmp eax, ebx
je 0x1003a80
mov eax, dword [0x100c02c]
neg eax
push 0x401
push dword [0x100c020]
sbb eax, eax
and eax, 0x10000000
push edi
or eax, 0x44800000
push eax
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
mov dword [0x100c024], eax
cmp eax, ebx
je 0x1003a80
push 1
call fcn.010015c7
lea eax, [ebp - 0x6c]
push eax
push dword [0x100c024]
call esi
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x100c084], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
or dword [ebp - 0x58], 0xffffffff
imul eax, eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 2
push 0x404
push dword [0x100c024]
call esi
push ebx
push dword [0x100c034]
push 0xc8
push dword [0x100c028]
call esi
cmp dword [0x100c034], ebx
jne 0x100578a
push 0x2d0
push 0x5a
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [0x100c004]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov edi, 0x100c200
push edi
mov dword [0x100c200], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push dword [ebp - 0x48]
mov dword [0x100c088], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
push 0x20
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x100c21c
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10057af
push ebx
push dword [0x100c088]
push 0x30
push dword [0x100c028]
call esi
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
push ebx
push 0xbd
push dword [0x100c028]
xor eax, eax
mov word [0x100c9e0], ax
call esi
push ebx
push ebx
push 0xc5
push dword [0x100c028]
mov dword [0x100c098], eax
call esi
push dword [0x100c2bc]
call fcn.0100283c
push dword [ebp + 0x10]
push dword [0x100c020]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp - 0x50]
call fcn.01002725
or dword [0x100c05c], 0xffffffff
mov edi, eax
push edi
mov eax, 0x10026c4
call fcn.010027e5
test eax, eax
je 0x10057e0
push edi
mov eax, 0x10026bc
call fcn.010027e5
test eax, eax
je 0x10057e8
cmp dword [0x100c05c], 0xffffffff
je 0x1005802
jmp 0x10057f7
push 0x104
push edi
mov edi, 0x100cae0
push edi
call fcn.01003a9a
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100c074], eax
cmp eax, 0xffffffff
je 0x100582f
push dword [0x100c05c]
push edi
call fcn.01003696
jmp 0x1001d43
cmp eax, ebx
jne 0x1001d1b
jmp 0x1001d3a
xor eax, eax
jmp 0x1001e02
cmp dword [0x100c074], 0xffffffff
jne 0x1003a62
jmp 0x1001d43
push dword [0x100c020]
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]
jmp 0x1002590
push edi
push 0x1007a5c
push 0x100c21c
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_EnumFontsW]
push dword [0x100c088]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x100c088], eax
jmp 0x1002604
mov dword [0x100c05c], ebx
jmp 0x10057f7
mov dword [0x100c05c], 1
jmp 0x10026a7
add edi, 4
push edi
call fcn.01002725
mov edi, eax
call fcn.01007a78
jmp 0x1003a73
cmp eax, 2
je 0x1003a80
jmp 0x1001d43
push ebx
push ebx
push 0x10
push dword [0x100c020]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1005887
push 0x33
push edi
push dword [0x100c2b4]
push dword [0x100c2d0]
push dword [0x100c020]
call fcn.01007071
cmp eax, 2
je 0x1003a80
cmp eax, 6
jne 0x1003a87
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100c074], eax
jmp 0x1003a87
push edi
call fcn.01007c4a
push dword [0x100c2bc]
call fcn.0100283c
push dword [0x100c2bc]
push 0x104
push edi
call fcn.0100293e
jmp 0x1003a87
push 1
push 1
push pe_nt_image_headers32
push dword [0x100c028]
call esi
jmp 0x1001dfa