Function at 0x180011f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x180011fa8
cmp byte [rcx + 1], 0
je 0x180011fa8
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x180011fa8
mov rcx, rbx
call fcn.18002d4b0
mov rax, qword [0x180056b58]
test rax, rax
je 0x180011f9f
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x18001276d
cmp byte [rdi + 0x46f9], r12b
je 0x18001202e
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18001202e
mov rsi, qword [0x180056b58]
mov qword [0x180056b58], rdi
mov dword [rdi + 0x46fc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.18001fd50
mov rbp, rax
lea rdx, [0x180048dd8]
mov rcx, rbx
call fcn.18000c5a0
mov rbx, rax
test rax, rax
je 0x180012027
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x180056b58], rsi
mov ebx, r12d
cmp dword [rdi + 0x4740], r12d
jle 0x180012070
mov rsi, r12
nop dword [rax]
mov rcx, qword [rdi + 0x4748]
cmp dword [rsi + rcx + 4], 6
jne 0x180012062
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x4740]
jl 0x180012040
mov esi, r12d
cmp dword [rdi + 0x31d0], r12d
jle 0x1800120c1
mov r14, r12
nop
mov rax, qword [rdi + 0x31d8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800120b3
mov rcx, rbx
call fcn.18000ed30
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800120aa
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x31d0]
jl 0x180012080
mov rcx, qword [rdi + 0x31d8]
test rcx, rcx
je 0x1800120f3
mov qword [rdi + 0x31d0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800120e6
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31d8], r12
mov rcx, qword [rdi + 0x31e8]
test rcx, rcx
je 0x180012125
mov qword [rdi + 0x31e0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012118
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31e8], r12
mov rcx, qword [rdi + 0x31f8]
test rcx, rcx
je 0x180012157
mov qword [rdi + 0x31f0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x18001214a
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x31f8], r12
mov qword [rdi + 0x3230], r12
mov rcx, qword [rdi + 0x3208]
test rcx, rcx
je 0x180012190
mov qword [rdi + 0x3200], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012183
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3208], r12
mov rcx, qword [rdi + 0x3218]
test rcx, rcx
je 0x1800121c2
mov qword [rdi + 0x3210], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800121b5
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3218], r12
mov qword [rdi + 0x3438], r12
mov qword [rdi + 0x3240], r12
mov qword [rdi + 0x3238], r12
mov qword [rdi + 0x32c8], r12
mov qword [rdi + 0x32b0], r12
mov qword [rdi + 0x3248], r12
mov rcx, qword [rdi + 0x33a8]
test rcx, rcx
je 0x18001221e
mov qword [rdi + 0x33a0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012211
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33a8], r12
mov rcx, qword [rdi + 0x33b8]
test rcx, rcx
je 0x180012250
mov qword [rdi + 0x33b0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012243
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33b8], r12
mov rcx, qword [rdi + 0x33c8]
test rcx, rcx
je 0x180012282
mov qword [rdi + 0x33c0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012275
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x33c8], r12
mov rcx, qword [rdi + 0x3408]
test rcx, rcx
je 0x1800122b4
mov qword [rdi + 0x3400], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800122a7
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3408], r12
mov rcx, qword [rdi + 0x3418]
test rcx, rcx
je 0x1800122e6
mov qword [rdi + 0x3410], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800122d9
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3418], r12
mov ebp, r12d
cmp dword [rdi + 0x3428], r12d
jle 0x1800123b4
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3430]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800123a2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x180012340
mov rcx, rsi
call fcn.18000b0a0
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012337
dec dword [rax + 0x158]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x18001236d
mov rcx, rsi
call fcn.18000b0a0
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012363
dec dword [rax + 0x158]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x18000a090]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.1800456b8
nop
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012399
dec dword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x3428]
jl 0x180012300
mov rcx, qword [rdi + 0x3430]
test rcx, rcx
je 0x1800123e6
mov qword [rdi + 0x3428], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800123d9
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3430], r12
lea rcx, [rdi + 0x36f8]
call fcn.180020c50
mov rcx, qword [rdi + 0x3728]
test rcx, rcx
je 0x180012424
mov qword [rdi + 0x3720], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012417
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3728], r12
mov rcx, qword [rdi + 0x3738]
test rcx, rcx
je 0x180012456
mov qword [rdi + 0x3730], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012449
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3738], r12
mov ebx, r12d
cmp dword [rdi + 0x3678], r12d
jle 0x1800124a8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3680]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18001249a
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012493
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x3678]
jl 0x180012470
mov rcx, qword [rdi + 0x3680]
test rcx, rcx
je 0x1800124da
mov qword [rdi + 0x3678], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800124cd
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3680], r12
lea rcx, [rdi + 0x36a8]
call fcn.180020dd0
mov esi, r12d
cmp dword [rdi + 0x3698], r12d
jle 0x180012545
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x36a0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.18002cf50
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x180012537
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012530
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x3698]
jl 0x180012500
mov rcx, qword [rdi + 0x36a0]
test rcx, rcx
je 0x180012577
mov qword [rdi + 0x3698], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x18001256a
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x36a0], r12
mov rcx, qword [rdi + 0x36e8]
test rcx, rcx
je 0x1800125a9
mov qword [rdi + 0x36e0], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x18001259c
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x36e8], r12
mov rcx, qword [rdi + 0x46c0]
test rcx, rcx
je 0x1800125db
mov qword [rdi + 0x46b8], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800125ce
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x46c0], r12
mov rcx, qword [rdi + 0x46d0]
test rcx, rcx
je 0x18001260d
mov qword [rdi + 0x46c8], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012600
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x46d0], r12
mov rcx, qword [rdi + 0x3760]
test rcx, rcx
je 0x18001263f
mov qword [rdi + 0x3758], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012632
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3760], r12
mov rcx, qword [rdi + 0x3770]
test rcx, rcx
je 0x180012671
mov qword [rdi + 0x3768], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012664
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3770], r12
mov rcx, qword [rdi + 0x3780]
test rcx, rcx
je 0x1800126a3
mov qword [rdi + 0x3778], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x180012696
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3780], r12
mov rcx, qword [rdi + 0x4728]
test rcx, rcx
je 0x1800126d5
mov qword [rdi + 0x4720], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800126c8
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4728], r12
mov rcx, qword [rdi + 0x4718]
test rcx, rcx
je 0x180012707
mov qword [rdi + 0x4710], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x1800126fa
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4718], r12
cmp qword [rdi + 0x4760], 0
je 0x180012738
mov rbx, qword [rdi + 0x4760]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x180012731
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x4760], r12
mov rcx, qword [rdi + 0x4770]
test rcx, rcx
je 0x18001276a
mov qword [rdi + 0x4768], r12
mov rax, qword [0x180056b58]
test rax, rax
je 0x18001275d
dec dword [rax + 0x158]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4770], r12
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret