Function at 0x140030440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14003049f
cmp byte [rcx + 1], 0
je 0x14003049f
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14003049f
mov rcx, rdi
call fcn.1400578e0
mov rax, qword [0x140101520]
test rax, rax
je 0x140030496
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140030be4
cmp byte [rbx + 0x2fb8], r15b
je 0x140030522
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140030522
mov rsi, qword [0x140101520]
mov qword [0x140101520], rbx
mov dword [rbx + 0x2fbc], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14003fcb0
mov rbp, rax
lea rdx, [0x1400ef6bc]
mov rcx, rdi
call fcn.14002a460
mov rdi, rax
test rax, rax
je 0x140030529
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140030529
mov rsi, qword [0x140101520]
mov qword [0x140101520], rbx
call fcn.140042180
mov qword [0x140101520], rsi
mov esi, r15d
cmp dword [rbx + 0x2f80], r15d
jle 0x140030592
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x2f88]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x140030584
mov rcx, rdi
call fcn.140043820
mov rax, qword [0x140101520]
test rax, rax
je 0x14003057b
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x2f80]
jl 0x140030550
mov edi, r15d
cmp dword [rbx + 0x2ff0], r15d
jle 0x1400305d2
mov rsi, r15
mov rdx, qword [rbx + 0x2ff8]
cmp dword [rsi + rdx], 6
jne 0x1400305c4
mov r8, qword [rsi + rdx + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rdx, [rdx + rcx*8]
mov rcx, rbx
call r8
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 0x2ff0]
jl 0x1400305a1
mov ebp, r15d
cmp dword [rbx + 0x1b38], r15d
jle 0x140030706
mov r14, r15
nop word [rax + rax]
mov rax, qword [rbx + 0x1b40]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x1400306f4
mov rcx, qword [rdi]
test rcx, rcx
je 0x140030624
mov rax, qword [0x140101520]
test rax, rax
je 0x14003061e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r15d
cmp dword [rdi + 0x2f8], r15d
je 0x140030650
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x300]
call fcn.14002d1b0
inc esi
cmp esi, dword [rdi + 0x2f8]
jne 0x140030630
lea rcx, [rdi + 0x320]
call fcn.1400288b0
nop
mov rcx, qword [rdi + 0x300]
test rcx, rcx
je 0x140030682
mov rax, qword [0x140101520]
test rax, rax
je 0x14003067b
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x2f0]
test rcx, rcx
je 0x1400306a7
mov rax, qword [0x140101520]
test rax, rax
je 0x1400306a0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0x118]
call fcn.14002d0e0
nop
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1400306d9
mov rax, qword [0x140101520]
test rax, rax
je 0x1400306d2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140101520]
test rax, rax
je 0x1400306eb
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1b38]
jl 0x1400305f0
mov rcx, qword [rbx + 0x1b40]
test rcx, rcx
je 0x140030738
mov qword [rbx + 0x1b38], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x14003072b
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b40], r15
mov rcx, qword [rbx + 0x1b50]
test rcx, rcx
je 0x14003076a
mov qword [rbx + 0x1b48], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x14003075d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b50], r15
mov rcx, qword [rbx + 0x1b60]
test rcx, rcx
je 0x14003079c
mov qword [rbx + 0x1b58], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x14003078f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b60], r15
mov qword [rbx + 0x1b90], r15
mov rcx, qword [rbx + 0x1b70]
test rcx, rcx
je 0x1400307d5
mov qword [rbx + 0x1b68], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400307c8
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b70], r15
mov rcx, qword [rbx + 0x1b80]
test rcx, rcx
je 0x140030807
mov qword [rbx + 0x1b78], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400307fa
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b80], r15
mov qword [rbx + 0x1d70], r15
mov qword [rbx + 0x1ba8], r15
mov qword [rbx + 0x1ba0], r15
mov qword [rbx + 0x1b98], r15
mov qword [rbx + 0x1c30], r15
mov qword [rbx + 0x1c18], r15
mov qword [rbx + 0x1bb8], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x14003086a
mov qword [rbx + 0x1ce8], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x14003085d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cf0], r15
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x14003089c
mov qword [rbx + 0x1cf8], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x14003088f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d00], r15
mov rcx, qword [rbx + 0x1d10]
test rcx, rcx
je 0x1400308ce
mov qword [rbx + 0x1d08], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400308c1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d10], r15
mov rcx, qword [rbx + 0x1d20]
test rcx, rcx
je 0x140030900
mov qword [rbx + 0x1d18], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400308f3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d20], r15
mov rcx, qword [rbx + 0x1d30]
test rcx, rcx
je 0x140030932
mov qword [rbx + 0x1d28], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030925
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d30], r15
mov qword [rbx + 0x1d60], r15
mov qword [rbx + 0x1d58], r15
mov qword [rbx + 0x1d50], r15
mov edi, r15d
cmp dword [rbx + 0x1d38], r15d
jle 0x14003097e
mov rsi, r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x1d40]
mov rcx, qword [rsi + rcx]
call fcn.14004bcf0
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rbx + 0x1d38]
jl 0x140030960
mov rcx, qword [rbx + 0x1d40]
test rcx, rcx
je 0x1400309b0
mov qword [rbx + 0x1d38], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400309a3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d40], r15
lea rcx, [rbx + 0x1fa0]
call fcn.14004ada0
mov rcx, qword [rbx + 0x1fd0]
test rcx, rcx
je 0x1400309ee
mov qword [rbx + 0x1fc8], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x1400309e1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fd0], r15
mov rcx, qword [rbx + 0x1fe0]
test rcx, rcx
je 0x140030a20
mov qword [rbx + 0x1fd8], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030a13
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fe0], r15
mov rcx, qword [rbx + 0x2f48]
test rcx, rcx
je 0x140030a52
mov qword [rbx + 0x2f40], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030a45
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f48], r15
mov rcx, qword [rbx + 0x2f58]
test rcx, rcx
je 0x140030a84
mov qword [rbx + 0x2f50], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030a77
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f58], r15
mov rcx, qword [rbx + 0x2008]
test rcx, rcx
je 0x140030ab6
mov qword [rbx + 0x2000], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030aa9
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2008], r15
mov rcx, qword [rbx + 0x2018]
test rcx, rcx
je 0x140030ae8
mov qword [rbx + 0x2010], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030adb
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2018], r15
mov rcx, qword [rbx + 0x2028]
test rcx, rcx
je 0x140030b1a
mov qword [rbx + 0x2020], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030b0d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2028], r15
mov rcx, qword [rbx + 0x2fe8]
test rcx, rcx
je 0x140030b4c
mov qword [rbx + 0x2fe0], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030b3f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fe8], r15
mov rcx, qword [rbx + 0x2fd8]
test rcx, rcx
je 0x140030b7e
mov qword [rbx + 0x2fd0], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030b71
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fd8], r15
cmp qword [rbx + 0x3008], 0
je 0x140030baf
mov rdi, qword [rbx + 0x3008]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140030ba8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3008], r15
mov rcx, qword [rbx + 0x3018]
test rcx, rcx
je 0x140030be1
mov qword [rbx + 0x3010], r15
mov rax, qword [0x140101520]
test rax, rax
je 0x140030bd4
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3018], r15
mov byte [rbx], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret