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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x53b130
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.0040ec12
mov eax, dword [0x5ca544]
test eax, eax
je 0x53b41c
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 0x53b5da
test byte [section..data], 2
je 0x53b442
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x53b447
cmp dword [ebx], 2
jl 0x53b498
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 0x53b542
push 0
push 0
call fcn.0053bf90
add esp, 8
cmp dword [0x5ca554], 0
jne 0x53b4ca
push 0xffffffffffffffff
push dword [0x5ca54c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x53b4d5
mov ecx, dword [0x5ca548]
call fcn.005383c0
call fcn.0053c0e0
test al, al
je 0x53b520
push 2
push 0
push 0
push dword [0x5ca538]
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 [0x5ca538]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5ca554], 0
jne 0x53b537
push dword [0x5ca54c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x53b542
mov ecx, dword [0x5ca548]
call fcn.005383d0
cmp dword [ebx], 3
jne 0x53b5da
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 0x53b586
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.005479c0
add esp, 4
cmp dword [0x5ca540], 0
je 0x53b5d5
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
call fcn.0040ec12
lea eax, [ebp - 0x434]
push eax
call dword [0x5ca540]
add esp, 4
cmp dword [ebp - 0x420], 0x10
jb 0x53b5da
push dword [ebp - 0x434]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x53b5da
call fcn.00547530
cmp dword [ebp - 0x408], 0x10
jb 0x53b5f1
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], 0x57f604
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], 0x57f608
call fcn.0040ea16
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.0055daac
mov esp, ebp
pop ebp
ret