Function at 0x44d7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
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 - 0x918]
mov dword [ebp - 0x914], eax
push edx
xor edi, edi
lea ebx, [ebp - 0x92c]
mov eax, esi
mov dword [ebp - 0x920], ecx
mov byte [ebp - 0x90d], 0
call fcn.0044c8b0
add esp, 4
cmp byte [ebp - 0x92c], 0
je 0x44d84d
cmp dword [ebp - 0x928], 1
jl 0x44dc94
mov eax, dword [ebp + 0xc]
test al, 1
je 0x44d85e
push eax
push esi
call fcn.0044c980
add esp, 8
mov al, byte [ebp - 0x92c]
test al, al
mov ebx, 0x504008
mov cl, 0x20
je 0x44d885
mov byte [0x504008], al
mov byte [0x504009], cl
mov byte [0x50400a], cl
mov ebx, 0x50400b
mov eax, dword [ebp - 0x924]
test eax, eax
jle 0x44d89f
nop
mov byte [ebx], cl
add ebx, 1
mov byte [ebx], cl
add ebx, 1
sub eax, 1
jne 0x44d890
test byte [ebp + 0xc], 2
je 0x44d8ae
mov eax, ebx
call fcn.0044c4e0
add ebx, eax
mov eax, dword [str._ERROR__]
push eax
mov ecx, 0x506007
sub ecx, ebx
push ecx
push ebx
call fcn.00452ab0
mov eax, dword [str._ERROR__]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d8d0
mov ecx, dword [ebp + 8]
sub eax, edx
add ebx, eax
mov eax, 0x506007
sub eax, ebx
mov dword [ebp - 0x91c], eax
mov eax, ecx
sub eax, 1
je 0x44da3d
sub eax, 1
je 0x44d943
cmp dword [0x508194], edi
mov esi, dword [ebp - 0x918]
push 0xd67
push str.dptrace.c
push ecx
push str._ERROR___Illegal_encoding__d__for_Trace___s__d__n
je 0x44d92e
call fcn.0044c320
add esp, 0x10
cmp dword [0x508194], edi
jmp 0x44dc88
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
cmp dword [0x508194], edi
jmp 0x44dc88
mov edi, dword [ebp - 0x914]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d950
sub eax, edx
cmp eax, 0x400
jae 0x44d976
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44d967
sub eax, edx
mov esi, eax
jmp 0x44d97b
mov esi, 0x400
push esi
lea edx, [ebp - 0x90c]
push edi
push edx
mov dword [ebp - 0x914], esi
call sub.MSVCR80.dll_memcpy
lea eax, [ebp + esi - 0x90c]
add esp, 0xc
mov byte [eax], 0
cmp byte [eax - 1], 0xa
jne 0x44d9a6
mov byte [eax - 1], 0
mov edx, dword [ebp - 0x91c]
lea eax, [ebp - 0x914]
push eax
mov eax, dword [ebp - 0x920]
mov ecx, edi
mov edi, ebx
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44da25
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x918]
je 0x44d9fe
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push 0xd34
push str.dptrace.c
push ecx
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44dc81
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push 0xd34
push str.dptrace.c
push edx
push str._ERROR___vsnprintfU_err__errno_d___s__d__n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
jmp 0x44dc81
cmp eax, 0xfffffffe
jne 0x44da31
mov byte [ebp - 0x90d], 1
mov byte [0x506007], 0
jmp 0x44db47
mov edi, dword [ebp - 0x914]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44da48
sub eax, edx
cmp eax, 0x400
jae 0x44da6f
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x44da60
sub eax, edx
mov esi, eax
jmp 0x44da74
mov esi, 0x400
push esi
lea eax, [ebp - 0x508]
push edi
push eax
mov dword [ebp - 0x914], esi
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + esi - 0x508]
add esp, 0xc
mov byte [eax], 0
cmp byte [eax - 1], 0xa
jne 0x44daa0
mov byte [eax - 1], 0
mov eax, dword [ebp - 0x920]
mov edx, dword [ebp - 0x91c]
lea ecx, [ebp - 0x914]
push ecx
lea ecx, [ebp - 0x508]
mov edi, 0x501ca8
call fcn.0044c850
add esp, 4
cmp eax, 0xffffffff
jne 0x44db26
cmp dword [0x508194], 0
mov esi, dword [ebp - 0x918]
je 0x44daff
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push 0xd54
push str.dptrace.c
push edx
push str._ERROR___vsnprintf_err__errno_d___s__d__n
call fcn.0044c320
add esp, 0x10
jmp 0x44dc81
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0xd54
push str.dptrace.c
push eax
push str._ERROR___vsnprintf_err__errno_d___s__d__n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
jmp 0x44dc81
cmp eax, 0xfffffffe
jne 0x44db32
mov byte [ebp - 0x90d], 1
push 0x501ca8
push ebx
mov byte [0x503ca7], 0
call fcn.00452e60
add esp, 8
mov eax, dword [ebp - 0x914]
add ebx, eax
mov esi, 0x506007
sub esi, ebx
je 0x44dc00
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_strerror]
add esp, 4
test eax, eax
jne 0x44db8d
push str.illegal_errno
lea edx, [ebp - 0x104]
push 0x100
push edx
call fcn.00452ab0
add esp, 0xc
jmp 0x44dbd0
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x44db92
sub ecx, edi
cmp ecx, 0x100
jb 0x44dbc0
push str.error_text_too_long
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00452ab0
add esp, 0xc
jmp 0x44dbd0
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00452e60
add esp, 8
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push 0x508140
push 0x508134
lea edx, [ebp - 0x104]
push edx
push eax
push str.___d:__s_____12.12s__.5s__n
push esi
push ebx
call fcn.00452c10
add esp, 0x1c
mov byte [0x506007], 0
mov ecx, dword [0x508194]
test ecx, ecx
mov esi, dword [ebp - 0x918]
je 0x44dc2b
mov edx, dword [0x508198]
sub eax, 0x504008
push edx
add eax, ebx
push eax
push 0x504008
call ecx
add esp, 0xc
jmp 0x44dc44
push esi
sub eax, 0x504008
push 1
add eax, ebx
push eax
push 0x504008
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp byte [ebp - 0x90d], 0
je 0x44dc81
cmp dword [0x508194], 0
je 0x44dc6b
mov eax, dword [str._WARNING__]
push eax
push str._n_sdata_was_truncated_n
call fcn.0044c320
add esp, 8
jmp 0x44dc81
mov ecx, dword [str._WARNING__]
push ecx
push str._n_sdata_was_truncated_n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
cmp dword [0x508194], 0
jne 0x44dc94
push esi
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