Function at 0x1002268
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1006058]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x1006b80
mov dword [ebp - 0x418], edi
call fcn.01002e62
add esp, 0x14
push 0x100153c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [ebp - 0x41c], eax
je 0x10024b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10024b0
cmp dword [0x10064d8], edi
jne 0x1002359
lea eax, [ebp - 0x428]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push fcn.01002228
push edi
push edi
mov dword [0x10064e8], esi
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1002339
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100233f
push edi
call fcn.01002228
cmp dword [0x10064d8], edi
jne 0x1002359
jmp 0x1002351
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x418], edi
je 0x1002349
mov esi, dword [0x10064f8]
mov eax, dword [0x10064f4]
neg esi
sbb esi, esi
and esi, 8
neg eax
sbb eax, eax
and eax, 4
or esi, eax
mov eax, dword [0x10064f0]
neg eax
sbb eax, eax
and eax, 2
or esi, eax
xor eax, eax
cmp dword [0x10064fc], edi
push 0x7f02
setne al
push edi
or esi, eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push edi
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x1006b80
push 0x1006034
call sub.FBAOCM.dll_OcInitialize
cmp eax, edi
push dword [ebp - 0x420]
mov dword [0x10064e4], eax
jne 0x10023f5
call ebx
cmp dword [ebp - 0x424], edi
je 0x10024cc
push 0x1001530
push 0x1001504
call sub.FBALIB.DLL_FBALogMessage2
pop ecx
pop ecx
jmp 0x10024cc
push dword [ebp - 0x418]
push eax
call fcn.01002642
push dword [ebp - 0x420]
call ebx
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call ebx
cmp dword [0x10064d8], edi
mov esi, eax
jne 0x1002465
lea eax, [ebp - 0x428]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push fcn.01002228
push edi
push edi
mov dword [0x10064e8], edi
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x100245f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002465
push edi
call fcn.01002228
push 0x10064e4
call sub.FBAOCM.dll_OcTerminate
cmp dword [0x10064d8], edi
jne 0x100249c
jmp 0x1002481
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x418], edi
je 0x1002479
push edi
push edi
push 0x8000
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
xor eax, eax
inc eax
jmp 0x10024da
movzx eax, word [0x10064e0]
push 0x11030
push eax
push edi
push 0xea64
push edi
call fcn.01001aae
add esp, 0x14
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002b02
leave
ret