Function at 0x100be960
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x514
mov eax, dword [0x1010a040]
xor eax, esp
mov dword [esp + 0x510], eax
mov eax, dword [0x102df4e4]
push ebx
push esi
push edi
test al, 1
je 0x100be9a0
push 0x102df4e5
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x100bedd4
mov eax, dword [0x102df4e4]
test al, 2
je 0x100be9e5
push 0x102df525
lea eax, [esp + 0x14]
push str.XTEAM_MAIN_10405__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x100beac3
lea eax, [esp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [0x102df6bc], 0
je 0x100beacb
push 0x104
lea eax, [esp + 0x414]
push 0
push eax
call fcn.100d2920
add esp, 0xc
lea eax, [esp + 0x410]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100beac3
lea ecx, [esp + 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bea30
sub ecx, edx
test ecx, ecx
jle 0x100bea6d
nop dword [eax]
cmp byte [esp + ecx + 0x410], 0x5c
je 0x100bea51
dec ecx
test ecx, ecx
jg 0x100bea40
jmp 0x100bea6d
lea eax, [esp + 0x411]
add eax, ecx
push eax
push 0x104
push 0x108b6740
call fcn.100d9b6b
add esp, 0xc
push 0x102df5bb
push 0x108b6740
call fcn.100da8d7
add esp, 8
test eax, eax
jne 0x100beac3
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df5bb
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100beaaf
mov eax, dword [0x102df6bc]
cmp eax, dword [esp + 0xc]
je 0x100beacb
push 0x10
push str.Error
push str.Main.exe_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x102df6c0], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x100beb48
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df5db
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100bebaf
mov eax, dword [0x102df6c0]
cmp eax, dword [esp + 0xc]
jne 0x100bebaf
push 0x102df5db
call esi
test eax, eax
jne 0x100beb3a
push 0x10
push str.Error
push str.Plugin1_load_error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100beb48
call eax
cmp dword [0x102df6c4], 0
je 0x100bebd9
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df5fb
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100bec40
mov eax, dword [0x102df6c4]
cmp eax, dword [esp + 0xc]
jne 0x100bec40
push 0x102df5fb
call esi
test eax, eax
jne 0x100bebcb
push 0x10
push str.Error
push str.Plugin2_load_error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Plugin1_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100bebd9
call eax
cmp dword [0x102df6c8], 0
je 0x100bec6a
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df61b
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100becd1
mov eax, dword [0x102df6c8]
cmp eax, dword [esp + 0xc]
jne 0x100becd1
push 0x102df61b
call esi
test eax, eax
jne 0x100bec5c
push 0x10
push str.Error
push str.Plugin3_load_error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Plugin2_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100bec6a
call eax
cmp dword [0x102df6cc], 0
je 0x100becfb
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df63b
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100bed62
mov eax, dword [0x102df6cc]
cmp eax, dword [esp + 0xc]
jne 0x100bed62
push 0x102df63b
call esi
test eax, eax
jne 0x100beced
push 0x10
push str.Error
push str.Plugin4_load_error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Plugin3_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100becfb
call eax
cmp dword [0x102df6d0], 0
je 0x100bed8c
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df65b
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100beddc
mov eax, dword [0x102df6d0]
cmp eax, dword [esp + 0xc]
jne 0x100beddc
push 0x102df65b
call esi
test eax, eax
jne 0x100bed7e
push 0x10
push str.Error
push str.Plugin5_load_error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Plugin4_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100bed8c
call eax
cmp dword [0x102df6d4], 0
je 0x100bee06
lea ecx, [esp + 0x10]
call fcn.10004d10
push ecx
lea eax, [esp + 0x10]
push eax
push 0x102df67b
lea ecx, [esp + 0x1c]
call fcn.10004e40
test al, al
je 0x100bee85
mov eax, dword [0x102df6d4]
cmp eax, dword [esp + 0xc]
jne 0x100bee85
push 0x102df67b
call esi
test eax, eax
jne 0x100bedf8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Plugin5_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1010123c
push eax
call edi
test eax, eax
je 0x100bee06
call eax
call fcn.100beec0
cmp dword [0x102df548], 0
jbe 0x100beea1
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100beea1
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], pe_nt_image_headers32
call ebx
cmp eax, 1
jne 0x100bee6e
lea eax, [esp + 0x34]
push 0x102df5bb
push eax
call fcn.100da8d7
add esp, 8
lea ecx, [esi + 1]
test eax, eax
lea eax, [esp + 0x10]
cmovne ecx, esi
push eax
push edi
mov esi, ecx
call ebx
cmp eax, 1
je 0x100bee45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [0x102df548]
jbe 0x100beea1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Error
push str.Camera_CRC_error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d0760
mov esp, ebp
pop ebp
ret