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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x1001830
call edi
xor esi, esi
mov dword [0x100885c], eax
cmp eax, esi
je 0x1004fb5
push 0x1001814
call edi
cmp eax, esi
mov dword [0x1008960], eax
je 0x1004fb5
push esi
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1004fb5
mov edi, dword [ebp + 8]
push edi
call fcn.010047ee
test eax, eax
je 0x1004fb5
call fcn.010051ed
push 0x29
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
neg eax
sbb eax, eax
add eax, 0x7f01
push eax
push esi
call ebx
push 0x7f02
push esi
mov dword [0x1008f40], eax
call ebx
push 0x1001804
push edi
mov dword [0x1008854], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp dword [0x1008854], esi
mov dword [0x1008850], eax
je 0x1004fb5
cmp eax, esi
je 0x1004fb5
cmp dword [ebp + 0xc], esi
jne 0x1004cf9
push edi
call fcn.0100515f
test eax, eax
je 0x1004fb5
mov eax, dword [0x10087d0]
mov dword [0x1008c98], edi
mov dword [0x1008be0], 0x54
mov dword [0x1008be4], eax
mov dword [0x1008be8], esi
mov dword [0x1008bec], esi
mov dword [0x1008c1c], edi
call fcn.010018cf
call fcn.01004444
push esi
push edi
push esi
push esi
push dword [0x1008818]
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [0x1008814]
push dword [0x100880c]
push dword [0x1008810]
push 0xcf0000
push 0x1001398
push 0x1008018
push esi
call ebx
mov edx, eax
cmp edx, esi
mov dword [0x10087d0], edx
je 0x1004fb5
mov eax, 0x80000000
cmp dword [0x1008814], eax
je 0x1004dd3
cmp dword [0x1008818], eax
je 0x1004dd3
push 0xb
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [0x1008810]
mov ecx, dword [0x1008814]
add ecx, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x100880c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x1008818]
mov dword [ebp - 0x20], eax
add ecx, eax
lea eax, [ebp - 0x40]
push eax
push edx
mov dword [ebp - 0x40], 0x2c
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov edx, dword [0x10087d0]
mov edi, dword [ebp + 8]
push 1
push edx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
lea eax, [ebp - 0x14]
push eax
push dword [0x10087d0]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x10087e4]
push esi
push edi
push 0xf
push dword [0x10087d0]
neg eax
push dword [ebp - 8]
sbb eax, eax
push dword [ebp - 0xc]
and eax, 0xfff00000
add eax, 0x50300104
push esi
push esi
push eax
push 0x1001398
push 0x10017f8
push 0x200
call ebx
cmp eax, esi
mov dword [0x10087d4], eax
je 0x1004fb5
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push dword [0x10087e4]
push 0xc8
push eax
call ebx
push 0x2d0
push 0x5a
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [0x1008010]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push 0x1008900
mov dword [0x1008900], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
mov dword [0x1008bd4], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x80]
push eax
push 0x20
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
mov edi, 0x100891c
lea eax, [ebp - 0x80]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004ee3
push 0x1008900
push 0x1004c1d
push edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_EnumFontsW]
push dword [0x1008bd4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x1008900
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x1008bd4], eax
push esi
push dword [0x1008bd4]
push 0x30
push dword [0x10087d4]
call ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push 2
push 0x42
mov word [0x1008d40], si
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push esi
push 0xc5
mov dword [0x100895c], eax
push dword [0x10087d4]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [0x100803c]
call fcn.01002a91
push dword [ebp + 0x14]
push dword [0x10087d0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1008f40]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0x10]
call fcn.010048a3
or dword [0x100881c], 0xffffffff
mov edi, eax
push edi
push 0x10017f0
call fcn.01004a15
test eax, eax
jne 0x1004f75
mov dword [0x100881c], esi
jmp 0x1004f8e
push edi
push 0x10017e8
call fcn.01004a15
test eax, eax
jne 0x1004f8e
mov dword [0x100881c], 1
cmp dword [0x100881c], 0xffffffff
je 0x1004fa2
add edi, 4
push edi
call fcn.010048a3
mov edi, eax
push edi
call fcn.010048bd
cmp eax, esi
je 0x1004fbe
cmp eax, 2
jne 0x100509a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0x14]
push edi
call fcn.01004a5e
test eax, eax
je 0x1004fe0
push esi
push esi
push 0x10
push dword [0x10087d0]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1005157
cmp word [edi], si
je 0x100509a
push edi
mov edi, 0x10089c0
push edi
call fcn.010046d0
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1008bd0], eax
jne 0x1005085
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1005067
push 0x33
push edi
push dword [0x1008030]
push dword [0x1008050]
push dword [0x10087d0]
call fcn.01002cf5
cmp eax, 2
je 0x1004fb5
cmp eax, 6
jne 0x1005085
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1008bd0], eax
jmp 0x1005085
push edi
call fcn.010062f0
push dword [0x100803c]
call fcn.01002a91
push dword [0x100803c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [0x1008bd0], 0xffffffff
je 0x100509a
push dword [0x100881c]
push edi
call fcn.01005c6f
push 0x1008ca0
call fcn.01004bc0
push 0x1008860
call fcn.01004bc0
push 0x16
xor eax, eax
pop ecx
mov edi, 0x1008c40
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
mov dword [0x1008c48], eax
pop ecx
xor eax, eax
mov edi, 0x1008980
rep stosd dword es:[edi], eax
mov edx, dword [0x10087d0]
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0xb0
push dword [0x10087d4]
mov dword [0x1008c40], 0x58
mov dword [0x1008c44], edx
mov dword [0x1008c60], 0x104
mov dword [0x1008980], 0x28
mov dword [0x1008984], edx
call ebx
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0xb1
push dword [0x10087d4]
call ebx
push esi
push esi
push 0xb7
push dword [0x10087d4]
call ebx
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and ax, 0x3ff
cmp ax, 0x11
jne 0x1005157
push 1
push 1
push pe_nt_image_headers32
push dword [0x10087d4]
call ebx
push 1
pop eax
jmp 0x1004fb7