Function at 0x458521
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.00432240
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.0042b3d0
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.0041c351
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
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x45865f
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x858], 0
jne 0x45865f
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx - 4]
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 0x44]
push ecx
push str._d.lic
mov edx, dword [ebp - 0x854]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x45865d
mov dword [ebp - 0x858], 1
jmp 0x458600
push 0x48e5c0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x458691
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042b499
add esp, 8
xor eax, eax
jmp 0x45884e
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 0x458761
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 0x45870f
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 0x458697
mov edx, dword [ebp - 0x34]
movsx eax, byte [edx]
test eax, eax
je 0x458802
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 0x4587b5
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.0042b4ab
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret