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

Disassembly:
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 0x10023a8
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
call edi
xor ebx, ebx
mov dword [0x100c07c], eax
cmp eax, ebx
je 0x1002bf3
push 0x100238c
call edi
mov dword [0x100c078], eax
cmp eax, ebx
je 0x1002bf3
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x1002bf3
push esi
call fcn.01003881
test eax, eax
je 0x1002bf3
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 0x100237c
push esi
mov dword [0x100c090], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x100c080], eax
cmp dword [0x100c090], ebx
je 0x1002bf3
cmp eax, ebx
je 0x1002bf3
call fcn.010037ef
mov dword [0x100c08c], esi
mov dword [0x100c140], 0x54
mov dword [0x100c148], ebx
mov dword [0x100c14c], ebx
mov dword [0x100c17c], esi
call fcn.01002f8b
call fcn.010030e2
push ebx
push esi
push ebx
push ebx
push dword [0x100c04c]
mov edi, 0x10015bc
push dword [0x100c050]
push dword [0x100c058]
push dword [0x100c054]
push 0xcf0000
push edi
push 0x100386c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [0x100c020], esi
mov dword [0x100c144], esi
cmp esi, ebx
je 0x1002bf3
mov eax, 0x80000000
cmp dword [0x100c058], eax
je 0x1002045
cmp dword [0x100c054], eax
je 0x1002045
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 0x1002032
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 0x1002f7c
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100c028], eax
cmp eax, ebx
je 0x1002bf3
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 0x1002bf3
push 1
call fcn.0100170a
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 0x1005772
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 0x1005797
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.01002456
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.010025cb
or dword [0x100c05c], 0xffffffff
mov edi, eax
push edi
mov eax, 0x1002374
call fcn.01002689
test eax, eax
je 0x10057c8
push edi
mov eax, 0x100236c
call fcn.01002689
test eax, eax
je 0x10057d0
cmp dword [0x100c05c], 0xffffffff
jne 0x10057df
push edi
call fcn.010025ef
cmp eax, ebx
jne 0x10057ef
push dword [ebp + 0x10]
push edi
call fcn.01002631
test eax, eax
jne 0x10057fd
cmp word [edi], bx
jne 0x1002bac
push 0x50
push 0x100c880
call fcn.010026d5
push 0x50
push 0x100c7e0
call fcn.010026d5
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 0x1005891
call fcn.01002733
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001564
leave
ret 0xc
push 0x104
push edi
mov edi, 0x100cae0
push edi
call fcn.01002c0d
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 0x1005812
push dword [0x100c05c]
push edi
call fcn.01002820
jmp 0x1002299
xor eax, eax
jmp 0x1002358
cmp dword [0x100c074], 0xffffffff
jne 0x1002be2
jmp 0x1002299
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 0x100214d
push edi
push 0x1007a3c
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 0x10021c1
mov dword [0x100c05c], ebx
jmp 0x10057df
mov dword [0x100c05c], 1
jmp 0x1002264
add edi, 4
push edi
call fcn.010025cb
mov edi, eax
jmp 0x1002271
cmp eax, 2
je 0x1002bf3
jmp 0x1002299
push ebx
push ebx
push 0x10
push dword [0x100c020]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1002355
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100586a
push 0x33
push edi
push dword [0x100c2b4]
push dword [0x100c2d0]
push dword [0x100c020]
call fcn.01007051
cmp eax, 2
je 0x1002bf3
cmp eax, 6
jne 0x1002bfa
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 0x1002bfa
push edi
call fcn.01007bf6
push dword [0x100c2bc]
call fcn.01002456
push dword [0x100c2bc]
push 0x104
push edi
call fcn.01002558
jmp 0x1002bfa
push 1
push 1
push 0xd8
push dword [0x100c028]
call esi
jmp 0x1002350