Function at 0x53d8d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x53d660
lea edi, [ebx + 8]
mov dword [ebp - 0x43c], ebx
mov ecx, edi
mov dword [ebp - 0x438], edi
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea esi, [ebx + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x440], esi
push eax
mov ecx, esi
call fcn.0040eb20
mov eax, dword [0x5d1504]
test eax, eax
je 0x53d94c
lea ecx, [ebp - 0x41c]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x53db0a
test byte [section..data], 2
je 0x53d972
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x53d977
cmp dword [ebx], 2
jl 0x53d9c8
cmp dword [ebp - 0x408], 0x10
lea ebx, [ebp - 0x41c]
mov edi, dword [ebp - 0x40c]
cmovae ebx, dword [ebp - 0x41c]
mov esi, dword [sym.imp.MSVCR120.dll___iob_func]
call esi
add eax, 0x40
push eax
push 1
push edi
push ebx
call dword [sym.imp.MSVCR120.dll_fwrite]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
mov edi, dword [ebp - 0x438]
add esp, 0x14
mov esi, dword [ebp - 0x440]
mov ebx, dword [ebp - 0x43c]
test byte [section..data], 1
je 0x53da72
push 0
push 0
call fcn.0053e4c0
add esp, 8
cmp dword [0x5d1514], 0
jne 0x53d9fa
push 0xffffffffffffffff
push dword [0x5d150c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x53da05
mov ecx, dword [0x5d1508]
call fcn.0053a750
call fcn.0053e610
test al, al
je 0x53da50
push 2
push 0
push 0
push dword [0x5d14f8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x438]
push 0
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x5d14f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5d1514], 0
jne 0x53da67
push dword [0x5d150c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x53da72
mov ecx, dword [0x5d1508]
call fcn.0053a760
cmp dword [ebx], 3
jne 0x53db0a
mov ecx, 0x400
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x40c], ecx
cmovb ecx, dword [ebp - 0x40c]
cmp dword [ebp - 0x408], 0x10
cmovae eax, dword [ebp - 0x41c]
test ecx, ecx
je 0x53dab6
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call fcn.00549f30
add esp, 4
cmp dword [0x5d1500], 0
je 0x53db05
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
call fcn.0040eb20
lea eax, [ebp - 0x434]
push eax
call dword [0x5d1500]
add esp, 4
cmp dword [ebp - 0x420], 0x10
jb 0x53db0a
push dword [ebp - 0x434]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x53db0a
call fcn.00549aa0
cmp dword [ebp - 0x408], 0x10
jb 0x53db21
push dword [ebp - 0x41c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [eax + edi], 0x5835fc
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
lea ecx, [edi + 4]
mov dword [edi + 4], 0x583600
call fcn.0040e924
lea ecx, [edi + 4]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [edi + 8]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [edi + 0x50]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret