Function at 0x5258a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff948
mov eax, dword fs:[0]
push eax
mov eax, 0x207c
call fcn.005cca70
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x6a1aeb]
test eax, eax
jne 0x5258df
jmp 0x525bff
mov dword [ebp - 0x20], 0x6a1b80
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x617b48
push str.mem_leaks.txt
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x52593d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x525bff
push 0
call fcn.005d0ee1
add esp, 4
mov dword [ebp - 0x202c], eax
mov dword [ebp - 0x2028], edx
lea eax, [ebp - 0x202c]
push eax
call fcn.005d0eba
add esp, 4
mov dword [ebp - 0x2048], eax
mov ecx, dword [ebp - 0x2048]
push ecx
call fcn.005d0bb6
add esp, 4
push eax
push str.Memory_Leak_Report_for__s_n
lea edx, [ebp - 0x2024]
push edx
call fcn.005cc868
add esp, 0xc
lea eax, [ebp - 0x2024]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005d0f32
add esp, 8
push 0x613fbc
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea edx, [ebp - 0x2024]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x6a1b78]
mov dword [ebp - 0x204c], eax
mov ecx, dword [ebp - 0x204c]
mov edx, dword [ecx]
mov dword [ebp - 0x2050], edx
mov dword [ebp - 0x2034], 0
mov eax, dword [ebp - 0x2050]
mov dword [ebp - 0x2030], eax
mov ecx, 0x6a1b60
test ecx, ecx
jne 0x5259f4
call fcn.005cbe1d
mov edx, dword [0x6a1b60]
mov dword [ebp - 0x2034], edx
mov eax, dword [ebp - 0x2034]
mov ecx, dword [ebp - 0x2030]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x525a46
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2058], edx
mov dword [ebp - 0x2054], eax
lea ecx, [ebp - 0x18]
call fcn.0054ae90
mov ecx, dword [ebp - 0x2058]
mov dword [ebp - 0x203c], ecx
mov edx, dword [ebp - 0x2054]
mov dword [ebp - 0x2038], edx
mov eax, dword [0x6a1b78]
mov dword [ebp - 0x205c], eax
mov dword [ebp - 0x2044], 0
mov ecx, dword [ebp - 0x205c]
mov dword [ebp - 0x2040], ecx
mov edx, 0x6a1b60
test edx, edx
jne 0x525a75
call fcn.005cbe1d
mov eax, dword [0x6a1b60]
mov dword [ebp - 0x2044], eax
lea ecx, [ebp - 0x2044]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004bd5e0
movzx edx, al
test edx, edx
je 0x525b72
lea ecx, [ebp - 0x18]
call fcn.004c6510
mov dword [ebp - 0x2064], eax
mov eax, dword [ebp - 0x2064]
cmp dword [eax + 4], 1
jle 0x525ac0
mov dword [ebp - 0x2088], 0x617b18
jmp 0x525aca
mov dword [ebp - 0x2088], 0x609000
lea ecx, [ebp - 0x18]
call fcn.004c6510
mov dword [ebp - 0x206c], eax
lea ecx, [ebp - 0x18]
call fcn.004c6510
mov dword [ebp - 0x2074], eax
lea ecx, [ebp - 0x18]
call fcn.004c6510
mov dword [ebp - 0x207c], eax
mov ecx, dword [ebp - 0x2088]
push ecx
mov edx, dword [ebp - 0x206c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2074]
mov edx, dword [ecx + 0x110]
push edx
mov eax, dword [ebp - 0x207c]
add eax, 8
push eax
push str._s__d__:_Leak__d_byte_s_n
lea ecx, [ebp - 0x2024]
push ecx
call fcn.005cc868
add esp, 0x18
lea edx, [ebp - 0x2024]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [ebp - 0x2024]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005d0f32
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.004c6510
mov dword [ebp - 0x2084], eax
mov edx, dword [ebp - 0x2084]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x525a14
push str.____________________________________________________________n
lea ecx, [ebp - 0x2024]
push ecx
call fcn.005cc868
add esp, 8
lea edx, [ebp - 0x2024]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005d0f32
add esp, 8
lea ecx, [ebp - 0x2024]
push ecx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x10]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov edx, dword [ebp - 0x10]
push edx
push str.Total_Unfreed:__d_bytes___dKB__n_n
lea eax, [ebp - 0x2024]
push eax
call fcn.005cc868
add esp, 0x10
lea ecx, [ebp - 0x2024]
push ecx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea edx, [ebp - 0x2024]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005d0f32
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret