Function at 0x451611
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x20]
push edx
call fcn.0042dd50
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 0x28
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041ab90
add esp, 8
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00413941
add esp, 0x10
mov eax, dword [ebp - 0x40]
add eax, 0x76c
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x850]
add ecx, 1
mov dword [ebp - 0x850], ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x5c
mov eax, dword [ebp + 0xc]
push eax
push str._s_c_s_d_02d_02d.lic
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x3c], eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430d98
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x451755
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x858], 0
jne 0x451755
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx - 4]
mov dword [ebp - 0x854], ecx
mov edx, dword [ebp - 0x44]
push edx
push str._d.lic
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00430d98
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x451753
mov dword [ebp - 0x858], 1
jmp 0x4516f3
push 0x475c28
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00430540
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x45178a
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041ac64
add esp, 8
xor eax, eax
jmp 0x451947
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x34], edx
push 0xa
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x45185a
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x34]
mov byte [ebp + ecx - 0x848], 0
lea edx, [ebp - 0x848]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
movsx eax, byte [ebp + eax - 0x849]
cmp eax, 0xd
jne 0x451808
lea ecx, [ebp - 0x848]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x849], 0
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x848]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x848]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
push 0xd
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
mov eax, dword [ebp - 0x30]
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x451790
mov edx, dword [ebp - 0x34]
movsx eax, byte [edx]
test eax, eax
je 0x4518fb
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x848]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x848]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x849]
cmp ecx, 0xd
jne 0x4518ae
lea edx, [ebp - 0x848]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x849], 0
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x848]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push 1
lea edx, [ebp - 0x848]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
push 0xd
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x30]
push eax
push 0xd
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041ac76
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret