Function at 0x46cb20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c276e
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x4f9008]
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 0x46cb66
xor eax, eax
jmp 0x46d048
lea ecx, [esi + 0x98]
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x35c], ecx
test ecx, ecx
je 0x46cb8b
call sym.XNewLook.exe_public:_int___thiscall_LMutex::Lock_void_
mov dword [ebp - 0x358], eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x8e], 0
jne 0x46cc42
lea edx, [esi + 0x1c]
mov byte [esi + 0x8e], 1
cmp dword [edx + 0x14], 0x10
jb 0x46cbb1
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 0x46cbd1
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004094a0
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 1
lea ecx, [esi + 0xb8]
mov dword [ecx + 4], 0x3e8
push eax
call sym.XNewLook.exe_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 0x46cc42
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46cc38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d071
push edx
push ecx
call fcn.00475891
add esp, 8
lea ebx, [esi + 0xb8]
mov ecx, ebx
mov dword [ebp - 0x354], ebx
call sym.XNewLook.exe_public:_int___thiscall_LMutexEx::lock_void_
cmp byte [esi + 0x8c], 0
jne 0x46cc92
mov ecx, esi
call sym.XNewLook.exe_private:_int___thiscall_LDbgView::init_client_void_
cmp byte [esi + 0x8c], 0
jne 0x46cc92
mov eax, dword [ebx]
test eax, eax
je 0x46cc8a
cmp byte [ebx + 8], 0
je 0x46cc81
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 2
mov ecx, ebx
call sym.XNewLook.exe_public:_void___thiscall_LMutexEx::log_int_
or esi, 0xffffffff
jmp 0x46d027
cmp dword [esi + 0x48], 0
jne 0x46cf48
push 0x258
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.004773d0
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cd00
sub ecx, edx
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.00409940
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x284]
cmp ecx, eax
je 0x46cd4d
cmp dword [ebp - 0x270], 8
push dword [ebp - 0x274]
cmovae eax, dword [ebp - 0x284]
push eax
call fcn.00409940
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea eax, [ebp - 0x310]
push eax
lea ecx, [esi + 0x50]
call sym.XNewLook.exe_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 0x46cd8e
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x46cd83
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00409940
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f4]
call sym.XNewLook.exe_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 0x46cdda
cmp dword [ebp - 0x2dc], 8
push dword [ebp - 0x2e0]
cmovae eax, dword [ebp - 0x2f0]
push eax
call fcn.00409940
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [esi + 0x48], 0x23
lea ecx, [esi + 0x38]
jle 0x46cdfb
push 0
push 0x23
call fcn.00421300
cmp dword [esi + 0x64], 0x82
lea ecx, [esi + 0x54]
jle 0x46ce13
push 0
push 0x82
call fcn.00421300
cmp dword [esi + 0x80], 0x82
lea ecx, [esi + 0x70]
jle 0x46ce2e
push 0
push 0x82
call fcn.00421300
cmp dword [esi + 0x48], 0
jne 0x46ceb5
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push str.Unknown
call fcn.00409940
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x38]
cmp ecx, eax
je 0x46cea6
cmp dword [ebp - 0x28c], 8
push dword [ebp - 0x290]
cmovae eax, dword [ebp - 0x2a0]
push eax
call fcn.00409940
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [esi + 0x64], 0
jne 0x46cf3c
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push str.Unknown
call fcn.00409940
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 9
lea ecx, [esi + 0x54]
cmp ecx, eax
je 0x46cf2d
cmp dword [ebp - 0x2a8], 8
push dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2bc]
push eax
call fcn.00409940
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x88], eax
push 0
call fcn.0047cfa5
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x350], eax
cmp ecx, 0x258
jle 0x46d066
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 0x46cfd2
nop dword [eax]
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x32c]
push 0x258
push edi
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::substr_int__int_
push eax
push dword [ebp - 0x350]
mov ecx, esi
call sym.XNewLook.exe_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
lea ecx, [ebp - 0x32c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
add edi, 0x258
sub ebx, 1
jne 0x46cf90
mov ecx, dword [ebp - 0x360]
test ecx, ecx
jle 0x46d003
push ecx
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x348]
push edi
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::substr_int__int_
push eax
push dword [ebp - 0x350]
mov ecx, esi
call sym.XNewLook.exe_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
lea ecx, [ebp - 0x348]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ebx, dword [ebp - 0x354]
mov eax, dword [ebx]
test eax, eax
je 0x46d025
cmp byte [ebx + 8], 0
je 0x46d01c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 2
mov ecx, ebx
call sym.XNewLook.exe_public:_void___thiscall_LMutexEx::log_int_
xor esi, esi
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x46d046
cmp dword [ebp - 0x358], 0xffffff9c
je 0x46d046
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.00475880
mov esp, ebp
pop ebp
ret 4
push edi
push eax
mov ecx, esi
call sym.XNewLook.exe_private:_int___thiscall_LDbgView::write_one_unsigned_int__class_LString_const__
jmp 0x46d009
call fcn.0047cd61
int3