Function at 0x1007e15
Capabilities:
Allocate thread local storage
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7d4
mov eax, dword [0x100e03c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x7bc], eax
xor ebx, ebx
mov dword [ebp - 0x7cc], ebx
xor eax, eax
lea edi, [ebp - 0x7c8]
stosd dword es:[edi], eax
push 0x1002ba0
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x7b4], ebx
mov dword [ebp - 0x7d4], 8
mov dword [ebp - 0x7d0], 0x2020
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 0x7b8], eax
jne 0x1007e8a
mov dword [ebp - 0x7b0], 0x8007000e
jmp 0x1008225
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x100821b
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
mov dword [ebp - 0x7b0], eax
jl 0x1008225
mov eax, 0x104
push eax
lea ecx, [ebp - 0x4a8]
push ecx
push eax
lea ecx, [ebp - 0x5ac]
push ecx
push eax
lea eax, [ebp - 0x13c]
push eax
push 0x32
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x7bc]
mov dword [0x100e2c8], esi
mov byte [ebp - 0x4a8], bl
call fcn.01007a54
cmp eax, ebx
mov dword [ebp - 0x7b0], eax
jl 0x1008225
lea eax, [ebp - 0x4a8]
push eax
call fcn.01007ccf
test eax, eax
jl 0x1008225
lea eax, [ebp - 0x7d4]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor edi, edi
push 0x100e2c4
inc edi
push edi
call dword [sym.imp.ole32.dll_CoGetMalloc]
cmp eax, ebx
mov dword [ebp - 0x7b0], eax
jl 0x1008225
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100e034], eax
call fcn.01007d1e
cmp dword [0x100e2dc], ebx
jne 0x1007f8b
push ebx
push 0x1003cf2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x65
push dword [0x100e2c8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp eax, ebx
mov dword [ebp - 0x7cc], eax
je 0x100821b
push eax
call fcn.01003655
push edi
push dword [ebp - 0x7cc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1002b98
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x1007ffd
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov esi, 0xff
push esi
lea eax, [ebp - 0x23c]
push eax
push 0x3f9
push dword [0x100e2c8]
call edi
push esi
lea eax, [ebp - 0x3a4]
push eax
push 0x3f4
push dword [0x100e2c8]
call edi
cmp dword [0x100e2dc], ebx
jne 0x1008225
lea eax, [ebp - 0x3a4]
push 0x30
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1008225
push 0x1002b90
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x100805e
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov esi, 0xff
push esi
lea eax, [ebp - 0x3a4]
push eax
push 0x3fa
push dword [0x100e2c8]
call edi
push esi
lea eax, [ebp - 0x23c]
push eax
push 0x3f4
push dword [0x100e2c8]
call edi
cmp dword [0x100e2dc], ebx
jne 0x1008225
lea eax, [ebp - 0x23c]
push 0x30
push eax
lea eax, [ebp - 0x3a4]
jmp 0x1007ff0
push 0x1002b84
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x10080bb
push 0x100e2d4
lea eax, [ebp - 0x13c]
push eax
push 0x1002b4c
push 0x80000001
call fcn.01004473
cmp eax, ebx
mov dword [ebp - 0x7b0], eax
jl 0x1008225
lea eax, [ebp - 0x7b4]
push eax
lea eax, [ebp - 0x7cc]
push eax
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x13c]
push eax
push 2
call fcn.010076d2
jmp 0x10080f8
push 0x1002b44
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
je 0x10080dd
push 0x1002b3c
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x100821b
lea eax, [ebp - 0x7b4]
push eax
lea eax, [ebp - 0x7cc]
push eax
lea eax, [ebp - 0x13c]
push eax
push edi
call fcn.01008598
cmp dword [0x100e2dc], ebx
mov dword [ebp - 0x7b0], eax
jne 0x1008112
push dword [ebp - 0x7cc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0x7b4]
lea eax, [ebp - 0x38]
push dword [ebp - 0x7bc]
mov dword [ebp - 0x7cc], ebx
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x7b0]
push eax
push esi
call fcn.01003f2d
cmp esi, ebx
jge 0x100820f
cmp esi, 0x800c0079
jne 0x10081b8
push 0xff
lea eax, [ebp - 0x23c]
push eax
push 0x3f7
push dword [0x100e2c8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x32
lea eax, [ebp - 0x270]
push eax
push ebx
push dword [0x100e2d0]
call sub.SHLWAPI.dll_StrFormatByteSize64A
push eax
push 0x32
lea eax, [ebp - 0x2a4]
push eax
push ebx
push dword [0x100e2cc]
call sub.SHLWAPI.dll_StrFormatByteSize64A
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x7ac]
push 0x200
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
jmp 0x10081e4
cmp esi, 0x800c007f
lea eax, [ebp - 0x7ac]
push 0x200
push eax
jne 0x10081d3
push 0x3fb
jmp 0x10081d8
push 0x3f8
push dword [0x100e2c8]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [0x100e2dc], ebx
jne 0x1008225
lea eax, [ebp - 0x7ac]
push eax
push 0x1007d6d
push ebx
push 0x66
push dword [0x100e2c8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov dword [ebp - 0x7b0], eax
jmp 0x1008225
mov dword [ebp - 0x7b0], 0xc0320
jmp 0x1008225
mov dword [ebp - 0x7b0], 0x80004005
mov ecx, dword [0x100e2d8]
cmp ecx, ebx
je 0x1008241
mov eax, dword [0x100e2c4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov dword [0x100e2d8], ebx
lea eax, [ebp - 0x7b4]
push eax
call fcn.01003cbf
cmp dword [ebp - 0x7cc], ebx
je 0x1008261
push dword [ebp - 0x7cc]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.01007d37
mov eax, dword [0x100e034]
cmp eax, 0xffffffff
je 0x1008277
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x100e2c4]
cmp eax, ebx
je 0x100828c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x100e2c4], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x7b8], ebx
pop edi
pop esi
pop ebx
je 0x10082b5
push dword [ebp - 0x7b8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x7b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x7b0]
call fcn.010086b7
leave
ret 0x10