Function at 0x1005cf80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d766e
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34c], edi
cmp dword [edi + 0x14], 0
jne 0x1005cfc6
xor eax, eax
jmp 0x1005d4a8
lea ecx, [esi + 0x98]
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x35c], ecx
test ecx, ecx
je 0x1005cfeb
call sym.XNewLookSch.dll_public:_int___thiscall_LMutex::Lock_void_
mov dword [ebp - 0x358], eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x8e], 0
jne 0x1005d0a2
lea edx, [esi + 0x1c]
mov byte [esi + 0x8e], 1
cmp dword [edx + 0x14], 0x10
jb 0x1005d011
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d031
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x2d8]
call fcn.10011e40
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 1
lea ecx, [esi + 0xb8]
mov dword [ecx + 4], 0x3e8
push eax
call sym.XNewLookSch.dll_public:_int___thiscall_LMutexEx::init_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c4]
cmp edx, 0x10
jb 0x1005d0a2
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d098
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d4d1
push edx
push ecx
call fcn.1008bfe4
add esp, 8
lea ebx, [esi + 0xb8]
mov ecx, ebx
mov dword [ebp - 0x354], ebx
call sym.XNewLookSch.dll_public:_int___thiscall_LMutexEx::lock_void_
cmp byte [esi + 0x8c], 0
jne 0x1005d0f2
mov ecx, esi
call sym.XNewLookSch.dll_private:_int___thiscall_LDbgView::init_client_void_
cmp byte [esi + 0x8c], 0
jne 0x1005d0f2
mov eax, dword [ebx]
test eax, eax
je 0x1005d0ea
cmp byte [ebx + 8], 0
je 0x1005d0e1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 2
mov ecx, ebx
call sym.XNewLookSch.dll_public:_void___thiscall_LMutexEx::log_int_
or esi, 0xffffffff
jmp 0x1005d487
cmp dword [esi + 0x48], 0
jne 0x1005d3a8
push 0x258
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x26c]
push 0x12c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d160
sub ecx, edx
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.10002b70
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x284]
cmp ecx, eax
je 0x1005d1ad
cmp dword [ebp - 0x270], 8
push dword [ebp - 0x274]
cmovae eax, dword [ebp - 0x284]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea eax, [ebp - 0x310]
push eax
lea ecx, [esi + 0x50]
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_short_name_void_
add eax, 4
mov byte [ebp - 4], 4
lea edx, [esi + 0x38]
cmp edx, eax
je 0x1005d1ee
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x1005d1e3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.10002b70
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f4]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2f0]
cmp ecx, eax
je 0x1005d23a
cmp dword [ebp - 0x2dc], 8
push dword [ebp - 0x2e0]
cmovae eax, dword [ebp - 0x2f0]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [esi + 0x48], 0x23
lea ecx, [esi + 0x38]
jle 0x1005d25b
push 0
push 0x23
call fcn.10011230
cmp dword [esi + 0x64], 0x82
lea ecx, [esi + 0x54]
jle 0x1005d273
push 0
push 0x82
call fcn.10011230
cmp dword [esi + 0x80], 0x82
lea ecx, [esi + 0x70]
jle 0x1005d28e
push 0
push 0x82
call fcn.10011230
cmp dword [esi + 0x48], 0
jne 0x1005d315
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
mov word [ebp - 0x2a0], ax
push 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.Unknown
call fcn.10002b70
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x38]
cmp ecx, eax
je 0x1005d306
cmp dword [ebp - 0x28c], 8
push dword [ebp - 0x290]
cmovae eax, dword [ebp - 0x2a0]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [esi + 0x64], 0
jne 0x1005d39c
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], ax
push 7
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2bc]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.Unknown
call fcn.10002b70
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 9
lea ecx, [esi + 0x54]
cmp ecx, eax
je 0x1005d38d
cmp dword [ebp - 0x2a8], 8
push dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2bc]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x88], eax
push 0
call fcn.1009623e
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x350], eax
cmp ecx, 0x258
jle 0x1005d4c6
mov eax, 0x1b4e81b5
xor edi, edi
imul ecx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul eax, ebx, 0x258
sub ecx, eax
mov dword [ebp - 0x360], ecx
test ebx, ebx
jle 0x1005d432
nop dword [eax]
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x32c]
push 0x258
push edi
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::substr_int__int_
push eax
push dword [ebp - 0x350]
mov ecx, esi
call sym.XNewLookSch.dll_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
lea ecx, [ebp - 0x32c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
add edi, 0x258
sub ebx, 1
jne 0x1005d3f0
mov ecx, dword [ebp - 0x360]
test ecx, ecx
jle 0x1005d463
push ecx
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x348]
push edi
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::substr_int__int_
push eax
push dword [ebp - 0x350]
mov ecx, esi
call sym.XNewLookSch.dll_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
lea ecx, [ebp - 0x348]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ebx, dword [ebp - 0x354]
mov eax, dword [ebx]
test eax, eax
je 0x1005d485
cmp byte [ebx + 8], 0
je 0x1005d47c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 2
mov ecx, ebx
call sym.XNewLookSch.dll_public:_void___thiscall_LMutexEx::log_int_
xor esi, esi
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x1005d4a6
cmp dword [ebp - 0x358], 0xffffff9c
je 0x1005d4a6
dec dword [ecx]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret 4
push edi
push eax
mov ecx, esi
call sym.XNewLookSch.dll_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
jmp 0x1005d469
call fcn.10092486
int3