Function at 0x18004ba30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13d, dword [rsp + 0xc0]
mov r12, rdx
mov rdi, qword [rsp + 0x58]
mov r14, rcx
imul ebx, r13d, 0x3c
mov esi, r13d
mov dword [rsp + 0xc0], ebx
cmp r13d, ebx
ja 0x18004bbf5
mov r15, qword [rsp + 0x58]
xor ebx, ebx
mov rbp, qword [rsp + 0x58]
mov eax, dword [rsp + 0xc0]
nop dword [rax + rax]
cmp esi, 0x55a
ja 0x18004bbac
je 0x18004bb5a
cmp esi, 0x112
ja 0x18004bb0f
je 0x18004baf5
mov eax, esi
sub eax, 0x94
je 0x18004bc81
sub eax, 0x2a
je 0x18004bac3
cmp eax, 7
jmp 0x18004bae1
mov ecx, 0x38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
mov r8, qword [rsp + 0xb0]
mov r9, qword [rsp + 0xb8]
mov eax, dword [rsp + 0xc0]
lea esi, [rsi + r13*4]
cmp esi, eax
jbe 0x18004ba90
jmp 0x18004bbf5
mov r15, r12
test r14, r14
je 0x18004bb00
mov dword [r14], ebx
test r12, r12
je 0x18004bae8
mov dword [r12 + 0x13e8], ebx
jmp 0x18004bae8
mov eax, esi
sub eax, 0x127
je 0x18004bb3d
sub eax, 0x28f
jne 0x18004bae1
test rbp, rbp
je 0x18004bc52
mov rax, qword [r14]
mov qword [rbp + 0x10], rax
mov rax, qword [r12]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
jmp 0x18004bae1
imul eax, dword [r14 + 0x14], 0x23280
cdq
idiv dword [r14 + 4]
cmp dword [r14 + 0x1c], ebx
lea ecx, [rax + 1]
cmove ecx, eax
mov dword [rsp + 0x50], ecx
jmp 0x18004bae1
test r15, r15
je 0x18004bd76
test r8, r8
je 0x18004bd76
cmp dword [r9], ebx
jl 0x18004bd76
cmp byte [r15 + 0x1394], bl
je 0x18004bd5a
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x18004bad1
test r14, r14
je 0x18004bb9f
mov dword [r14], 0xfffffffa
mov dword [r15 + 0x13e8], 0xfffffffa
jmp 0x18004bbf5
cmp esi, 0x9a6
ja 0x18004bc57
je 0x18004bc2e
cmp esi, 0x5c3
je 0x18004bc1c
cmp esi, 0x6ae
je 0x18004bc10
cmp esi, 0x9a2
jne 0x18004bae8
mov eax, dword [r9]
test eax, eax
jne 0x18004bd9b
test r14, r14
je 0x18004bbe9
mov dword [r14], ebx
test r15, r15
je 0x18004bbf5
mov dword [r15 + 0x13e8], ebx
mov rax, rdi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp + 0x28], rbx
mov dword [rbp + 0x30], ebx
jmp 0x18004bae8
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
mov rdi, qword [rsp + 0x58]
jmp 0x18004bae1
xor edx, edx
mov dword [rbp + 0x34], ebx
mov r8d, 0xe4
mov rcx, rbp
call fcn.180032dd0
test eax, eax
jne 0x18004bad1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
jmp 0x18004bbf8
cmp esi, 0xa5f
je 0x18004bbf5
cmp esi, 0xc9e
je 0x18004bc74
cmp esi, 0xf96
je 0x18004bbf5
jmp 0x18004bae8
mov rdi, rbp
mov qword [rsp + 0x58], rbp
jmp 0x18004bae8
mov edi, 0xb5
nop word [rax + rax]
mov eax, edi
sub eax, 0xb3
je 0x18004bd2d
sub eax, 1
je 0x18004bd08
cmp eax, 1
jne 0x18004bd38
mov rcx, qword [r14 + 0x18]
lea rbx, [r14 + 0x58]
mov rdx, rbx
call qword [r14 + ILClone]
test al, al
je 0x18004bd4b
cmp qword [rbx + 0x18], 0x10
jb 0x18004bccc
mov rbx, qword [rbx]
movzx eax, word [r14 + 0x78]
lea rcx, [rsp + 0xc0]
mov r9, qword [0x1800a75a8]
mov r8, rbx
mov edx, 0x112
mov word [rsp + 0xc0], ax
call fcn.180069570
test al, al
je 0x18004bd38
mov byte [rsp + 0x58], 1
mov rax, qword [rsp + 0x58]
jmp 0x18004bbf8
mov rcx, qword [0x1800a75a8]
xor r8d, r8d
lea edx, [r8 + 0x35]
call fcn.180074260
test al, al
je 0x18004bd4b
mov rcx, qword [r14 + 0x38]
lea rdx, [r14 + 0x58]
call qword [r14 + 0x30]
jmp 0x18004bd38
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
dec edi
cmp edi, 0xb2
ja 0x18004bc90
jmp 0x18004bc81
mov byte [rsp + 0x58], 0
mov rax, qword [rsp + 0x58]
jmp 0x18004bbf8
test r14, r14
je 0x18004bd66
mov dword [r14], 0xffffffff
mov dword [r15 + 0x13e8], 0xffffffff
jmp 0x18004bbf5
test r14, r14
je 0x18004bd82
mov dword [r14], 0xfffffffe
test r15, r15
je 0x18004bbf5
mov dword [r15 + 0x13e8], 0xfffffffe
jmp 0x18004bbf5
lea r12, [r15 + 0x1398]
mov dword [r15 + 0x13a0], eax
mov qword [r12], r8
nop dword [rax]
mov ebp, 0x8b
nop word [rax + rax]
mov eax, ebp
sub eax, 0x89
je 0x18004be89
sub eax, 1
je 0x18004be44
cmp eax, 1
jne 0x18004be92
mov qword [rsp + 0x40], r12
lea rax, [r15 + 8]
mov qword [r15 + 0x13b0], rax
xor r9d, r9d
lea rax, [rsp + 0xc0]
mov dword [r15 + 0x13b8], 0x1388
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov ecx, 0xb7
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0xc0], ebx
call fcn.180052a40
cmp eax, 1
je 0x18004be92
test r14, r14
je 0x18004be38
mov dword [r14], eax
mov dword [r15 + 0x13e8], eax
jmp 0x18004bbf5
mov eax, dword [r15 + 0x13b8]
cmp eax, 0x1388
jae 0x18004be92
mov r9, qword [r15]
lea rcx, [r15 + 8]
mov esi, 0x1388
mov edx, 1
sub esi, eax
movsxd r8, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp esi, eax
jne 0x18004bb93
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x18004bb93
jmp 0x18004be92
cmp dword [r15 + 0x13a0], ebx
je 0x18004bea5
dec ebp
cmp ebp, 0x88
ja 0x18004bdc0
jmp 0x18004bdb0
test r14, r14
je 0x18004bbee
mov dword [r14], ebx
jmp 0x18004bbee