Function at 0x404530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x6a0f4c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
cmp dword [eax + 0x75f8], 0
push esi
push edi
mov dword [esp + 0x10], ebx
jbe 0x404566
mov ecx, dword [eax + 0x75f8]
cmp byte [ecx + eax + 3], 0xa
je 0x404589
push 0x689ad8
push str.data___num_chars_to_log____0__data___message_text__data___num_chars_to_log__1____n
push str.Check__s_failed:__s
push 0x550
push 3
mov ecx, str....._srclogging.cc
call fcn.00409350
add esp, 0x14
cmp byte [0x6b84b4], 0
jne 0x4045e1
cmp dword [0x6a8a14], 0
jne 0x4045e1
mov ecx, 0x10
mov esi, str.WARNING:_Logging_before_InitGoogleLogging___is_written_to_STDERR_n
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045b4
sub eax, edx
mov esi, eax
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push 1
lea edx, [esp + 0x20]
push esi
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov byte [0x6b84b4], 1
cmp byte [0x6a96ed], 0
jne 0x40469c
cmp dword [0x6a8a14], 0
je 0x40469c
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x75f8]
push ecx
mov ecx, dword [eax + 0x75cc]
lea edx, [eax + 4]
push edx
mov edx, dword [eax + 0x75c8]
movsx eax, byte [eax + 0x75b4]
push ecx
push edx
call fcn.00402590
mov ecx, dword [ebx + 4]
movsx eax, byte [ecx + 0x75b4]
mov esi, dword [ecx + 0x75f8]
lea edi, [ecx + 4]
call fcn.004022a0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x75f8]
push ecx
movsx ecx, byte [eax + 0x75b4]
lea edi, [eax + 4]
call fcn.00402300
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x75f4]
mov ebx, dword [eax + 0x75f8]
add esp, 0x14
lea edx, [ecx + eax + 4]
push edx
mov edx, dword [eax + 0x75b8]
sub ebx, ecx
lea ecx, [eax + 0x75d0]
push ecx
mov ecx, dword [eax + 0x7600]
push edx
mov edx, dword [eax + 0x7604]
movsx eax, byte [eax + 0x75b4]
push ecx
push edx
dec ebx
push eax
call fcn.00402610
add esp, 0x18
jmp 0x4046f9
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x75f8]
lea edx, [eax + 4]
movsx eax, byte [eax + 0x75b4]
push ecx
push edx
call fcn.00402190
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x75f4]
mov ebx, dword [eax + 0x75f8]
sub ebx, ecx
lea ecx, [ecx + eax + 4]
push ecx
mov ecx, dword [eax + 0x75b8]
lea edx, [eax + 0x75d0]
push edx
mov edx, dword [eax + 0x7600]
push ecx
mov ecx, dword [eax + 0x7604]
push edx
movsx edx, byte [eax + 0x75b4]
push ecx
dec ebx
push edx
call fcn.00402610
add esp, 0x20
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp byte [eax + 0x75b4], 3
jne 0x404840
xor ebx, ebx
cmp byte [0x6a1238], bl
je 0x404840
cmp byte [eax + 0x7609], bl
je 0x4047c0
mov eax, dword [0x6b83b4]
mov edx, dword [0x6b83a4]
mov ecx, dword [0x6b8368]
mov dword [0x6a95f8], eax
lea eax, [edx + 0x6b0db4]
mov dword [0x6a95fc], ecx
mov dword [0x6a9600], eax
mov dword [0x6a9684], ebx
cmp dword [0x6a8a18], ebx
jne 0x404766
mov dword [0x6a8a18], 0x6a95f8
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x75f8]
mov dword [esp + 0x14], ecx
cmp ecx, 0xff
mov dword [esp + 0x10], 0xff
lea ecx, [esp + 0x10]
jg 0x40478b
lea ecx, [esp + 0x14]
mov esi, dword [ecx]
push esi
add eax, 4
push eax
push 0x6a88a8
call sub.MSVCR90.dll_memcpy
mov byte [esi + 0x6a88a8], bl
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x75c8]
mov edx, dword [eax + 0x75cc]
add esp, 0xc
mov dword [0x6a89b8], ecx
mov dword [0x6a89bc], edx
cmp byte [0x6a96ed], bl
jne 0x4047f8
mov esi, 0x6a89a8
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, ebx
je 0x4047ed
mov ecx, dword [eax + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
push 0x689ad8
push ebx
push ebx
push 1
call edx
add esi, 4
cmp esi, 0x6a89b8
jl 0x4047d0
mov al, byte [0x6a96c8]
test al, al
je 0x40480c
push 0x6a96b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 4]
push ecx
call fcn.004026f0
mov eax, str._Check_failure_stack_trace:__n
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404820
sub eax, edx
push eax
push str._Check_failure_stack_trace:__n
push 2
call dword [sym.imp.MSVCR90.dll__write]
add esp, 0xc
call dword [0x6a1240]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005fff12
mov esp, ebp
pop ebp
ret