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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x52bd40
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.0040eb2f
mov eax, dword [0x5ba244]
test eax, eax
je 0x52c02c
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 0x52c1ea
test byte [section..data], 2
je 0x52c052
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x52c057
cmp dword [ebx], 2
jl 0x52c0a8
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 0x52c152
push 0
push 0
call fcn.0052cb90
add esp, 8
cmp dword [0x5ba254], 0
jne 0x52c0da
push 0xffffffffffffffff
push dword [0x5ba24c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x52c0e5
mov ecx, dword [0x5ba248]
call fcn.00529310
call fcn.0052cce0
test al, al
je 0x52c130
push 2
push 0
push 0
push dword [0x5ba238]
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 [0x5ba238]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5ba254], 0
jne 0x52c147
push dword [0x5ba24c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x52c152
mov ecx, dword [0x5ba248]
call fcn.00529320
cmp dword [ebx], 3
jne 0x52c1ea
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 0x52c196
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.00538670
add esp, 4
cmp dword [0x5ba240], 0
je 0x52c1e5
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
call fcn.0040eb2f
lea eax, [ebp - 0x434]
push eax
call dword [0x5ba240]
add esp, 4
cmp dword [ebp - 0x420], 0x10
jb 0x52c1ea
push dword [ebp - 0x434]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x52c1ea
call fcn.005381e0
cmp dword [ebp - 0x408], 0x10
jb 0x52c201
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], 0x570554
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], 0x570558
call fcn.0040e933
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.0054e63c
mov esp, ebp
pop ebp
ret