Function at 0x4039b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x48
mov eax, dword [0x40e0a8]
xor eax, dword [esp + 0x48]
push ebx
push esi
push str.EloAccel
xor ebx, ebx
push 1
push ebx
mov dword [esp + 0x58], eax
mov dword [0x40ea98], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403a77
mov eax, dword [esp + 0x54]
mov dword [0x40eb60], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00402a60
test eax, eax
je 0x403a70
mov ecx, 0x40f098
call fcn.00401510
test eax, eax
je 0x403a1b
mov ecx, dword [0x40eab8]
push ecx
jmp 0x403a6a
mov ecx, 0x40f098
call fcn.00401050
cmp eax, ebx
mov dword [0x40eb5c], eax
jne 0x403a4b
mov edx, dword [0x40eab8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40eab8], ebx
mov eax, 1
jmp 0x403c71
mov eax, dword [esp + 0x5c]
cmp byte [eax], bl
je 0x403a81
push eax
call fcn.00403830
add esp, 4
test eax, eax
jne 0x403a81
mov eax, dword [0x40eab8]
cmp eax, ebx
je 0x403a70
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x403c71
push ebp
push edi
xor eax, eax
mov ecx, 0x140
mov edi, 0x40eb78
rep stosd dword es:[edi], eax
mov eax, dword [0x40f094]
xor ebp, ebp
cmp eax, ebx
jle 0x403b27
mov esi, 0x40eb7c
jmp 0x403ab0
mov eax, dword [ebp*4 + 0x40ead0]
lea ecx, [esp + 0x18]
push ecx
mov dword [esi - 4], eax
mov dword [esp + 0x1c], ebp
call dword [0x40eabc]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub edx, eax
mov dword [esi], edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [0x40f094]
mov dword [esi + 4], edx
mov dword [esi + 0xc], ecx
inc ebp
add esi, 0x14
cmp ebp, eax
jl 0x403ab0
mov ecx, dword [0x40ea98]
cmp ecx, ebx
jne 0x403b55
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [0x40eb6c], ebx
mov dword [0x40eb50], ebx
call esi
push 1
mov dword [0x40eac4], eax
call esi
mov dword [0x40ea90], eax
jmp 0x403b8e
push ebx
push str.Elo_TouchSystems
push str.You_must_calibrate_before_running_this_application
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40eab8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40eab8], ebx
mov eax, 1
jmp 0x403c6f
cmp ebp, ebx
jle 0x403b8e
mov eax, 0x40eb84
mov edi, edi
cmp dword [eax - 0xc], ecx
jne 0x403b88
mov edx, dword [eax]
mov dword [0x40eb6c], edx
mov edx, dword [eax + 4]
mov dword [0x40eb50], edx
mov edx, dword [eax - 8]
mov dword [0x40eac4], edx
mov edx, dword [eax - 4]
mov dword [0x40ea90], edx
add eax, 0x14
dec ebp
jne 0x403b60
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x403330
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x40f08c]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x403bd1
jmp 0x403bc0
push 0x64
call esi
mov edx, dword [0x40f08c]
push edx
call edi
test eax, eax
je 0x403bc0
push 0x64
call esi
mov eax, dword [sym.imp.USER32.dll_DefDlgProcA]
mov dword [esp + 0x30], eax
mov eax, dword [0x40eb60]
push 0x6d
push eax
mov dword [esp + 0x34], 0x2808
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x1e
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x40c560
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edx, dword [0x40f08c]
mov eax, dword [0x40eb60]
push ebx
push 0x403570
push edx
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, dword [0x40eab8]
cmp eax, ebx
je 0x403c62
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, dword [esp + 0x50]
pop esi
pop ebx
call fcn.00403e2f
add esp, 0x48
ret 0x10