Function at 0x44d260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
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 - 0x814]
mov dword [ebp - 0x820], eax
push edx
lea edi, [ebp - 0x818]
lea ebx, [ebp - 0x830]
mov eax, esi
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], ecx
mov byte [ebp - 0x80d], 0
call fcn.0044c8b0
mov bl, byte [ebp - 0x830]
add esp, 4
test bl, bl
je 0x44d2c8
cmp dword [ebp - 0x82c], 1
jl 0x44d7de
cmp byte [0x508190], 0
je 0x44d2e6
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax + 4]
cmp ecx, dword [0x4bef48]
jl 0x44d7de
mov edx, dword [ebp + 0xc]
test dl, 1
je 0x44d2fb
push edx
push esi
call fcn.0044c980
mov edx, dword [ebp + 0xc]
add esp, 8
test bl, bl
mov esi, 0x504008
mov cl, 0x20
je 0x44d31d
mov byte [0x504008], bl
mov byte [0x504009], cl
mov byte [0x50400a], cl
mov esi, 0x50400b
mov eax, dword [ebp - 0x828]
test eax, eax
jle 0x44d336
mov byte [esi], cl
add esi, 1
mov byte [esi], cl
add esi, 1
sub eax, 1
jne 0x44d327
test dl, 2
je 0x44d344
mov eax, esi
call fcn.0044c4e0
add esi, eax
mov eax, 0x506007
sub eax, esi
test dl, 4
je 0x44d37b
mov edx, dword [str._WARNING__]
push edx
push eax
push esi
call fcn.00452ab0
mov eax, dword [str._WARNING__]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d370
jmp 0x44d39d
mov ecx, dword [str._ERROR__]
push ecx
push eax
push esi
call fcn.00452ab0
mov eax, dword [str._ERROR__]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d394
mov ecx, dword [ebp + 8]
sub eax, edx
add esi, eax
mov ebx, 0x506007
mov eax, ecx
sub ebx, esi
sub eax, 1
je 0x44d532
sub eax, 1
je 0x44d401
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x814]
push 0xc68
push str.dptrace.c
push ecx
push str._ERROR___Illegal_encoding__d__for_Trace___s__d__n
je 0x44d3e4
call fcn.0044c320
add esp, 0x10
jmp 0x44d3ee
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
cmp dword [0x508194], 0
jne 0x44d7de
push esi
jmp 0x44d7d5
mov eax, dword [ebp - 0x820]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d410
sub eax, edx
mov edi, eax
cmp edi, 0x401
mov dword [ebp - 0x818], edi
jb 0x44d45e
cmp dword [0x508194], 0
push str._ERROR___Dptrc_fmt_string_truncated_n
je 0x44d443
call fcn.0044c320
add esp, 4
jmp 0x44d453
mov edx, dword [ebp - 0x814]
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
mov edi, 0x400
mov dword [ebp - 0x818], edi
mov eax, dword [ebp - 0x820]
push edi
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + edi - 0x408]
add esp, 0xc
mov byte [eax], 0
cmp byte [eax - 1], 0xa
jne 0x44d48a
mov byte [eax - 1], 0
mov eax, dword [ebp - 0x81c]
lea edx, [ebp - 0x818]
push edx
lea ecx, [ebp - 0x408]
mov edx, ebx
mov edi, esi
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44d51a
cmp dword [0x508194], 0
je 0x44d4d9
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0xc2c
push str.dptrace.c
push eax
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44d501
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x814]
push 0xc2c
push str.dptrace.c
push ecx
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
cmp dword [0x508194], 0
jne 0x44d7de
mov eax, dword [ebp - 0x814]
push eax
jmp 0x44d7d5
cmp eax, 0xfffffffe
jne 0x44d526
mov byte [ebp - 0x80d], 1
mov byte [0x506007], 0
jmp 0x44d671
mov eax, dword [ebp - 0x820]
lea edx, [eax + 1]
jmp 0x44d540
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d540
sub eax, edx
mov edi, eax
cmp edi, 0x401
mov dword [ebp - 0x818], edi
jb 0x44d58e
cmp dword [0x508194], 0
push str._ERROR___Dptrc_fmt_string_truncated_n
je 0x44d573
call fcn.0044c320
add esp, 4
jmp 0x44d583
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
mov edi, 0x400
mov dword [ebp - 0x818], edi
mov eax, dword [ebp - 0x820]
lea edx, [edi + 1]
push edx
push eax
lea ecx, [ebp - 0x80c]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + edi - 0x80c]
add esp, 0xc
mov byte [eax], 0
cmp byte [eax - 1], 0xa
jne 0x44d5bd
mov byte [eax - 1], 0
mov eax, dword [ebp - 0x81c]
lea edx, [ebp - 0x818]
push edx
lea ecx, [ebp - 0x80c]
mov edx, ebx
mov edi, 0x501ca8
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44d650
cmp dword [0x508194], 0
je 0x44d60f
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0xc54
push str.dptrace.c
push eax
push str._ERROR___vsnprintf_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44d637
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x814]
push 0xc54
push str.dptrace.c
push ecx
push str._ERROR___vsnprintf_err__errno_d___s__d__n
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
cmp dword [0x508194], 0
jne 0x44d7de
mov eax, dword [ebp - 0x814]
push eax
jmp 0x44d7d5
cmp eax, 0xfffffffe
jne 0x44d65c
mov byte [ebp - 0x80d], 1
push 0x501ca8
push esi
mov byte [0x503ca7], 0
call fcn.00452e60
add esp, 8
mov eax, dword [ebp - 0x818]
add esi, eax
mov ecx, 0x506007
sub ecx, esi
je 0x44d6a2
push 0x508140
push 0x508134
push str.____12.12s__.5s__n
push ecx
push esi
call fcn.00452c10
add esp, 0x14
mov byte [0x506007], 0
mov ecx, dword [0x508194]
sub eax, 0x504008
xor ebx, ebx
add eax, esi
cmp ecx, ebx
je 0x44d6c9
mov edx, dword [0x508198]
push edx
push eax
push 0x504008
call ecx
add esp, 0xc
jmp 0x44d6e1
mov ecx, dword [ebp - 0x814]
push ecx
push 1
push eax
push 0x504008
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp byte [ebp - 0x80d], 0
je 0x44d723
cmp dword [0x508194], ebx
je 0x44d708
mov edx, dword [str._WARNING__]
push edx
push str._n_sdata_was_truncated_n
call fcn.0044c320
add esp, 8
jmp 0x44d723
mov eax, dword [str._WARNING__]
mov ecx, dword [ebp - 0x814]
push eax
push str._n_sdata_was_truncated_n
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
cmp dword [0x506008], ebx
mov dword [ebp - 0x81c], ebx
je 0x44d7c5
mov edi, 0x506008
lea ebx, [ebx]
mov esi, dword [edi]
mov eax, 0x504008
call fcn.0044c7a0
test al, al
je 0x44d79c
cmp dword [0x508194], 0
je 0x44d76b
mov edx, dword [edi]
push edx
push str._nDpTrc:_found_match_for_pattern___s__in_output_n
call fcn.0044c320
add esp, 8
jmp 0x44d783
mov eax, dword [edi]
mov ecx, dword [ebp - 0x814]
push eax
push str._nDpTrc:_found_match_for_pattern___s__in_output_n
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
mov ebx, dword [ebx + 0x50600c]
test ebx, ebx
je 0x44d79c
mov edx, dword [edi]
mov eax, dword [ebp - 0x824]
push edx
push eax
call ebx
add esp, 8
mov eax, dword [ebp - 0x81c]
add eax, 1
lea ebx, [eax*8]
cmp dword [ebx + 0x506008], 0
lea edi, [ebx + 0x506008]
mov dword [ebp - 0x81c], eax
jne 0x44d740
cmp dword [0x508194], 0
jne 0x44d7de
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret