Function at 0x42af00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce41d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov al, byte [ebx + 0x18]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
test al, al
jne 0x42af46
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [esi], al
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00404710
mov edi, eax
test edi, edi
je 0x42b0ec
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea eax, [ebx + 0x24]
push dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.00408b70
mov edi, dword [ebp - 0x14]
add esp, 0x10
call fcn.00404710
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42b0ec
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push edi
call fcn.00403720
test al, al
jne 0x42b000
test edi, edi
jne 0x42afe2
xor ecx, ecx
jmp 0x42aff6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42afe7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004038b0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b03b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or esi, 0xffffffff
cmp dword [ebx + 0x34], 0
je 0x42b085
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x24]
test eax, eax
je 0x42b0ec
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x42b07a
test dx, dx
je 0x42b076
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x42b07a
add ecx, 4
add eax, 4
test dx, dx
jne 0x42b054
xor eax, eax
jmp 0x42b07f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42b092
jmp 0x42b088
mov edi, dword [ebp - 0x1c]
push dword [ebp + 8]
mov ecx, edi
call fcn.00409970
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x42b0ba
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x20]
test al, al
jne 0x42b0d8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x20]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402740
int3