Function at 0x10034824
Capabilities:
Accept command line arguments

Disassembly:
push 0xc5c
mov eax, 0x100a2678
call fcn.10002f71
mov esi, 0x10103850
push esi
mov dword [ebp - 0xc58], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x1010801c], bl
jne 0x10034bd2
push ebx
push ebx
push 4
lea ecx, [ebp - 0x430]
call fcn.1002a56f
push 0x20019
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 1
call fcn.10006cd2
push eax
lea ecx, [ebp - 0x430]
call fcn.10006dab
test eax, eax
jne 0x10034bc0
mov dword [ebp - 0x414], ebx
push ebx
push str.TraceThreadId
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x430]
call fcn.100331ab
test eax, eax
jne 0x100348c9
push 0xa
push dword [ebp - 0x414]
call fcn.10028931
test eax, eax
setg byte [0x10105adc]
push ebx
push str.TraceTime
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x430]
call fcn.100331ab
test eax, eax
jne 0x100348fb
push 0xa
push dword [ebp - 0x414]
call fcn.10028931
test eax, eax
setg byte [0x10105add]
push ebx
push str.TraceToDebugOutput
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x430]
call fcn.100331ab
test eax, eax
jne 0x1003492d
push 0xa
push dword [ebp - 0x414]
call fcn.10028931
test eax, eax
setg byte [0x10105ade]
lea eax, [ebp - 0x830]
mov byte [ebp - 0x838], bl
mov dword [ebp - 0x840], eax
mov edi, 0x200
xor eax, eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x830], ebx
mov word [ebp - 0x82c], ax
push ebx
push str.TraceCSUFile
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x430]
call fcn.100331ab
test eax, eax
jne 0x100349c9
lea eax, [ebp - 0xc5c]
push eax
call fcn.10031d51
mov eax, dword [eax]
mov dword [ebp - 0xc54], eax
push eax
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 4
call fcn.1003afbd
lea ecx, [ebp - 0xc54]
mov byte [ebp - 4], 5
call fcn.10006c2b
push dword [ebp - 0x414]
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 3
call fcn.1002c94f
jmp 0x100349f6
push ebx
push str.TraceFile
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x430]
call fcn.100331ab
test eax, eax
jne 0x100349f6
push dword [ebp - 0x414]
lea ecx, [ebp - 0x840]
call fcn.1003afbd
mov eax, dword [ebp - 0x840]
xor ecx, ecx
cmp cx, word [eax]
je 0x10034ba3
push eax
mov byte [ebp - 0x838], 1
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 0xc4c], edi
xor edx, edx
lea ecx, [ebp - 0xc40]
xor eax, eax
mov dword [ebp - 0xc50], ecx
mov dword [ebp - 0xc44], edx
mov dword [ebp - 0xc40], edx
mov word [ebp - 0xc3c], ax
push edi
push ecx
push edx
mov byte [ebp - 4], 6
mov byte [ebp - 0xc48], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10034a8e
push 0x80004005
push 0x66673573
lea eax, [ebp - 0xc68]
push eax
call fcn.10041233
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.1003caac
lea ecx, [ebp - 0xc68]
mov byte [ebp - 4], 6
call fcn.1002b193
push dword [ebp - 0xc50]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x840]
mov esi, eax
call fcn.10009506
mov edi, dword [ebp - 0x840]
push ebx
push esi
call fcn.1000ec5f
push eax
push edi
lea eax, [ebp - 0x840]
push str._s__s_pid_u.log
push eax
call fcn.10031001
add esp, 0x14
xor ebx, ebx
mov ecx, 0x10105ae0
push ebx
push 0x80
push 0x7021
push dword [ebp - 0x840]
call fcn.10036b58
test al, al
je 0x10034b8a
mov byte [0x1010801d], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
test edi, edi
je 0x10034b21
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10034b07
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10034b25
mov esi, ebx
jmp 0x10034b3b
add esi, esi
mov eax, esi
call fcn.1000a281
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1002d23b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str._nGrooveTrace_n_s___x__r_n_r_n
push 0x3ff
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.100426c8
mov edx, dword [0x10105ae0]
add esp, 0x18
mov ecx, 0x10105ae0
mov esi, eax
push 2
push ebx
push ebx
call dword [edx + 8]
push esi
lea eax, [ebp - 0x410]
push eax
push dword [0x10105ae8]
call fcn.1003dc20
jmp 0x10034b90
mov byte [0x1010801d], bl
lea eax, [ebp - 0xc50]
push eax
mov ecx, eax
call fcn.100073a8
mov esi, 0x10103850
lea eax, [ebp - 0x840]
push eax
mov ecx, eax
call fcn.100073a8
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 8
call fcn.10006c2b
lea ecx, [ebp - 0x430]
mov byte [0x1010801c], 1
call fcn.100073c5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0xc78]
call fcn.10003491
ret