Function at 0x1400e4b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebx, ebx
mov rdi, rcx
cmp dword [0x140f21698], ebx
jle 0x1400e4bd7
nop word [rax + rax]
movsxd rcx, ebx
mov rdx, rdi
imul rcx, rcx, 0x40f8
add rcx, qword [0x140f28268]
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x1400e4bdb
inc ebx
cmp ebx, dword [0x140f21698]
jl 0x1400e4bb0
mov ebx, dword [rsp + 0x40]
mov r9, qword [0x140f28268]
movsxd rbp, ebx
lea rdx, str._sbikes_s_registration.bin
imul rbp, rbp, 0x40f8
add r9, rbp
lea rcx, [rsp + 0x110]
lea r8, [r9 + 0x460]
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140326fec]
lea rcx, [rsp + 0x110]
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x1400e4c30
mov eax, 1
jmp 0x1400e4e67
xor ebx, ebx
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_ntohl
call qword [0x140546638]
movzx r11d, byte [rsp + 0x40]
inc rbx
cmp rbx, 0x10
mov byte [rsp + rbx + 0x47], r11b
jl 0x1400e4c40
mov edx, 1
lea rcx, [rsp + 0x48]
mov r9, rsi
lea r8d, [rdx + 0xf]
call sub.MSVCR90.dll_fwrite
mov rcx, rsi
mov rbx, rax
call sub.MSVCR90.dll_fclose
cmp ebx, 0x10
jne 0x1400e4c26
mov r9, qword [0x140f28268]
lea rdx, str._sbikes_s_s.cfg
lea rcx, [rsp + 0x110]
add r9, rbp
mov qword [rsp + 0x20], r9
lea r8, [r9 + 0x460]
call sub.MSVCR90.dll_sprintf
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x110]
mov ecx, 0x24c
call qword [0x140546638]
xor ebx, ebx
cmp dword [0x141074a18], ebx
jle 0x1400e4d09
nop dword [rax + rax]
movsxd rcx, ebx
lea rdx, [rsp + 0x78]
imul rcx, rcx, 0x534
add rcx, qword [0x140f21a98]
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x1400e4d0d
inc ebx
cmp ebx, dword [0x141074a18]
jl 0x1400e4ce0
mov ebx, dword [rsp + 0x40]
mov rax, qword [0x140f21a98]
movsxd r9, ebx
lea rdx, str._styres_s_s.cfg
imul r9, r9, 0x534
add r9, rax
lea rcx, [rsp + 0x330]
lea r8, [r9 + 0x20]
mov qword [rsp + 0x20], r9
call sub.MSVCR90.dll_sprintf
xor ebx, ebx
cmp dword [0x140f171b0], ebx
jle 0x1400e4d79
nop dword [rax + rax]
movsxd rcx, ebx
lea rdx, [rsp + 0x58]
imul rcx, rcx, 0x128
add rcx, qword [0x140f17180]
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x1400e4d7d
inc ebx
cmp ebx, dword [0x140f171b0]
jl 0x1400e4d50
mov ebx, dword [rsp + 0x40]
mov rax, qword [0x140f17180]
movsxd r9, ebx
lea rdx, str._srider_s.cfg
imul r9, r9, 0x128
add r9, rax
lea rcx, [rsp + 0x220]
lea r8, [r9 + 0x20]
call sub.MSVCR90.dll_sprintf
mov r11, qword [0x140f28268]
lea rax, [rsp + 0x220]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x330]
lea rdx, [r11 + rbp + 0x44c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x110]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov ecx, 0x24d
mov qword [rsp + 0x20], 0
call qword [0x140546638]
mov r11, qword [0x140f28268]
mov r8d, dword [r11 + rbp + 0x44c]
lea rcx, [rsp + 0xa0]
mov edx, 0x42494b45
call fcn.1400e4900
lea rdx, [0x140326ff0]
lea rcx, str.bike.txt
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
je 0x1400e4c26
lea r9, [rsp + 0xa0]
lea rdx, str._s:__s
mov r8, rdi
mov rcx, rax
call sub.MSVCR90.dll_fprintf
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov dword [0x1404af6fc], 0x1388
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140291ec0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret