Function at 0x42b570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf49d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x515080]
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 0x42b5b6
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.004046f0
mov edi, eax
test edi, edi
je 0x42b75c
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
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.00408d80
mov edi, dword [ebp - 0x14]
add esp, 0x10
call fcn.004046f0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42b75c
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
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.00403700
test al, al
jne 0x42b670
test edi, edi
jne 0x42b652
xor ecx, ecx
jmp 0x42b666
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b657
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00403890
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 0x42b6ab
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or esi, 0xffffffff
cmp dword [ebx + 0x34], 0
je 0x42b6f5
mov eax, dword [ebx + 0x24]
lea edi, [ebx + 0x24]
test eax, eax
je 0x42b75c
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x42b6ea
test dx, dx
je 0x42b6e6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x42b6ea
add ecx, 4
add eax, 4
test dx, dx
jne 0x42b6c4
xor eax, eax
jmp 0x42b6ef
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42b702
jmp 0x42b6f8
mov edi, dword [ebp - 0x1c]
push dword [ebp + 8]
mov ecx, edi
call fcn.00409b90
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 0x42b72a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x20]
test al, al
jne 0x42b748
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.00402720
int3