Function at 0x44cc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
push edx
lea edi, [ebp - 0x64]
lea ebx, [ebp - 0x7c]
mov eax, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x4d], 0
call fcn.0044c8b0
mov bl, byte [ebp - 0x7c]
mov eax, dword [0x4bef48]
add esp, 4
test bl, bl
je 0x44cc91
cmp dword [ebp - 0x78], eax
jl 0x44d249
cmp byte [0x508190], 0
je 0x44cca6
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 4], eax
jl 0x44d249
mov eax, dword [ebp + 0xc]
test al, 1
je 0x44ccb7
push eax
push esi
call fcn.0044c980
add esp, 8
mov eax, 0x20202020
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x74]
add eax, eax
cmp eax, 0x1f
mov dword [ebp - 0x68], 0x1f
ja 0x44cce8
mov dword [ebp - 0x68], eax
test bl, bl
mov edi, dword [ebp - 0x68]
mov byte [ebp + edi - 0x24], 0
mov esi, 0x504008
je 0x44cd58
cmp bl, byte [0x508193]
mov eax, 0x20202020
mov word [ebp - 0x58], ax
mov byte [ebp - 0x56], al
mov byte [ebp - 0x58], bl
je 0x44cd2e
cmp byte [0x4bef3d], 0
jne 0x44cd37
mov byte [0x504008], 0xa
mov esi, 0x504009
mov byte [0x4bef3d], 1
jmp 0x44cd37
cmp byte [0x4bef3d], 0
je 0x44cd58
mov dx, word [ebp - 0x58]
mov word [esi], dx
mov byte [esi + 2], al
lea eax, [ebp - 0x24]
push eax
add esi, 3
push 0x1ffd
push esi
call fcn.00452ab0
add esp, 0xc
add esi, edi
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x60], eax
je 0x44cd6c
mov eax, esi
call fcn.0044c4e0
add esi, eax
mov ecx, dword [ebp + 8]
mov edx, 0x506007
mov eax, ecx
sub edx, esi
sub eax, 1
je 0x44ce52
sub eax, 1
je 0x44cdac
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x54]
push 0xad6
push str.dptrace.c
push ecx
push str._ERROR___Illegal_encoding__d__for_Trace___s__d__n
je 0x44ce0b
call fcn.0044c320
add esp, 0x10
jmp 0x44ce15
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x5c]
mov edi, esi
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44ce3d
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x54]
je 0x44cdf3
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push 0xaac
push str.dptrace.c
push edx
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44ce15
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0xaac
push str.dptrace.c
push eax
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
cmp dword [0x508194], 0
jne 0x44d249
push esi
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
jne 0x44ce46
mov byte [ebp - 0x4d], 1
mov byte [0x506007], 0
jmp 0x44ceda
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x5c]
mov edi, 0x501ca8
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44cebc
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x54]
je 0x44ce9f
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push 0xac2
push str.dptrace.c
push edx
push str._ERROR___vsnprintf_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44ce15
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0xac2
push str.dptrace.c
push eax
push str._ERROR___vsnprintf_err__errno_d___s__d__n
jmp 0x44ce0b
cmp eax, 0xfffffffe
jne 0x44cec5
mov byte [ebp - 0x4d], 1
push 0x501ca8
push esi
mov byte [0x503ca7], 0
call fcn.00452e60
add esp, 8
mov ebx, dword [ebp - 0x5c]
sub esi, 0x504008
add ebx, esi
cmp byte [ebp - 0x7c], 0
mov edi, 0x504008
jne 0x44cefa
cmp dword [ebp - 0x60], 0
je 0x44d04c
push ebx
push 0xa
push 0x504008
mov byte [0x4bef3d], 0
call dword [sym.imp.MSVCR80.dll_memchr]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44d044
lea esp, [esp]
mov eax, esi
sub eax, edi
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x44d03d
lea edx, [ebx - 2]
cmp eax, edx
jne 0x44cf40
cmp byte [esi + 1], 0xd
je 0x44d03d
mov ecx, dword [0x508194]
add eax, 1
test ecx, ecx
je 0x44cf5d
mov edx, dword [0x508198]
push edx
push eax
push edi
call ecx
add esp, 0xc
jmp 0x44cf6e
mov ecx, dword [ebp - 0x54]
push ecx
push 1
push eax
push edi
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
sub edi, esi
cmp byte [ebp - 0x7c], 0
lea ebx, [ebx + edi - 1]
lea edi, [esi + 1]
je 0x44cfe5
mov eax, dword [0x508194]
test eax, eax
je 0x44cf9a
mov edx, dword [0x508198]
push edx
lea ecx, [ebp - 0x58]
push 3
push ecx
call eax
add esp, 0xc
jmp 0x44cfaf
mov edx, dword [ebp - 0x54]
push edx
push 1
lea eax, [ebp - 0x58]
push 3
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov eax, dword [0x508194]
test eax, eax
je 0x44cfce
mov ecx, dword [0x508198]
mov edx, dword [ebp - 0x68]
push ecx
push edx
lea ecx, [ebp - 0x24]
push ecx
call eax
add esp, 0xc
jmp 0x44cfe5
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x68]
push edx
push 1
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x60], 0
je 0x44d024
lea eax, [ebp - 0x4c]
call fcn.0044c4e0
mov ecx, dword [0x508194]
test ecx, ecx
je 0x44d010
mov edx, dword [0x508198]
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call ecx
add esp, 0xc
jmp 0x44d024
mov ecx, dword [ebp - 0x54]
push ecx
push 1
push eax
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
push ebx
push 0xa
push edi
call dword [sym.imp.MSVCR80.dll_memchr]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x44cf20
jmp 0x44d044
mov byte [0x4bef3d], 1
mov al, byte [ebp - 0x7c]
mov byte [0x508193], al
mov eax, dword [0x508194]
test eax, eax
je 0x44d065
mov ecx, dword [0x508198]
push ecx
push ebx
push edi
call eax
add esp, 0xc
jmp 0x44d076
mov edx, dword [ebp - 0x54]
push edx
push 1
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp byte [ebp - 0x4d], 0
je 0x44d0b3
cmp dword [0x508194], 0
je 0x44d09a
mov eax, dword [str._WARNING__]
push eax
push str._n_sdata_was_truncated_n
call fcn.0044c320
add esp, 8
jmp 0x44d0b3
mov ecx, dword [str._WARNING__]
mov edx, dword [ebp - 0x54]
push ecx
push str._n_sdata_was_truncated_n
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
xor ebx, ebx
cmp dword [0x508194], ebx
jne 0x44d0ca
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
cmp dword [0x506008], ebx
mov dword [ebp - 0x60], ebx
je 0x44d155
mov edi, 0x506008
mov edi, edi
mov esi, dword [edi]
mov eax, 0x504008
call fcn.0044c7a0
test al, al
je 0x44d136
cmp dword [0x508194], 0
je 0x44d10b
mov ecx, dword [edi]
push ecx
push str._nDpTrc:_found_match_for_pattern___s__in_output_n
call fcn.0044c320
add esp, 8
jmp 0x44d120
mov edx, dword [edi]
mov eax, dword [ebp - 0x54]
push edx
push str._nDpTrc:_found_match_for_pattern___s__in_output_n
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
mov ebx, dword [ebx + 0x50600c]
test ebx, ebx
je 0x44d136
mov ecx, dword [edi]
mov edx, dword [ebp - 0x6c]
push ecx
push edx
call ebx
add esp, 8
mov eax, dword [ebp - 0x60]
add eax, 1
lea ebx, [eax*8]
cmp dword [ebx + 0x506008], 0
lea edi, [ebx + 0x506008]
mov dword [ebp - 0x60], eax
jne 0x44d0e0
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
cmp dword [0x4bef58], 0
jle 0x44d249
cmp dword [ebp - 0x64], 0
je 0x44d1a8
mov esi, dword [ebp - 0x64]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov edi, ecx
and edi, esi
cmp edi, 0xffffffff
je 0x44d1a8
add ecx, 0xa
adc esi, 0
cmp edx, esi
jl 0x44d249
jg 0x44d19d
cmp eax, ecx
jbe 0x44d249
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
jmp 0x44d1d7
mov esi, dword [0x5081b0]
mov ecx, dword [0x5081b4]
add esi, 0xa
adc ecx, 0
cmp edx, ecx
jl 0x44d249
jg 0x44d1cc
cmp eax, esi
jbe 0x44d249
mov dword [0x5081b0], eax
mov dword [0x5081b4], edx
cmp dword [0x508194], 0
jne 0x44d249
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.MSVCR80.dll__fileno]
lea ecx, [ebp - 0xac]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll__fstat64i32]
add esp, 0xc
test eax, eax
jne 0x44d249
mov eax, dword [ebp - 0x98]
cmp eax, dword [0x4bef58]
jle 0x44d249
cmp dword [0x508194], 0
push eax
push str._nDpTrc:_maximum_file_size_reached:__d_n
je 0x44d226
call fcn.0044c320
add esp, 8
jmp 0x44d230
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
mov eax, dword [0x503fc8]
test eax, eax
je 0x44d249
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x6c]
push edx
push ecx
call eax
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret