Function at 0x140033c10
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
xor r12d, r12d
test rax, rax
je 0x140033d65
cmp byte [rcx + 1], r12b
je 0x140033d65
mov byte [rax + 0x18], r12b
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140033d65
mov rcx, rdi
call fcn.140054e90
mov rcx, rdi
call fcn.140054fe0
mov ebp, r12d
cmp dword [rdi + 0x48], r12d
jle 0x140033cbb
mov r14d, r12d
nop word [rax + rax]
mov rax, qword [rdi + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140033cb0
mov rcx, rsi
call fcn.140056900
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033ca7
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48]
jl 0x140033c80
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140033ce4
mov qword [rdi + 0x48], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033cda
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x50], r12
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x140033d06
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033cff
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140033d28
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033d21
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140033d4a
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033d43
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033d5c
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0xa8], r12
cmp byte [rbx], 0
je 0x1400344b4
cmp byte [rbx + 0x39f0], 0
je 0x140033de6
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140033de6
mov r15, qword [0x1407065c0]
mov qword [0x1407065c0], rbx
mov dword [rbx + 0x39f4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140043ee0
mov rsi, rax
lea rdx, [0x1405311d0]
mov rcx, rdi
call fcn.14002e160
mov rdi, rax
test rax, rax
je 0x140033ded
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
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 0x140033ded
mov r15, qword [0x1407065c0]
mov qword [0x1407065c0], rbx
mov esi, r12d
cmp dword [rbx + 0x1ef8], r12d
jle 0x140033e7b
mov r14, r12
mov rax, qword [rbx + 0x1f00]
mov rdi, qword [r14 + rax]
mov rbp, qword [0x1407065c0]
cmp byte [rdi + 0x82], 0
je 0x140033e57
mov rax, qword [rbp + 0x15f8]
test rax, rax
je 0x140033e33
mov rcx, rdi
call qword [case.0x14001f545.0]
mov rax, qword [rbp + 0x1560]
test rax, rax
je 0x140033e48
mov rcx, rdi
call qword [case.0x14001f545.0]
cmp dword [rdi], 0x11111111
je 0x140033e57
mov byte [rdi + 0x82], 0
mov qword [rdi + 0x48], r12
mov qword [rdi + 0x40], r12
mov qword [rdi + 0x38], r12
mov word [rdi + 0x58], 0
mov byte [rdi + 0x5a], 0
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1ef8]
jl 0x140033e03
mov qword [0x1407065c0], r15
mov esi, r12d
cmp dword [rbx + 0x39b8], r12d
jle 0x140033ed3
mov rbp, r12
mov rax, qword [rbx + 0x39c0]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x140033ec5
mov rcx, rdi
call fcn.1400476c0
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033ebc
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 + 0x39b8]
jl 0x140033e91
mov edi, r12d
cmp dword [rbx + 0x3a38], r12d
jle 0x140033f16
mov rsi, r12
mov rax, qword [rbx + 0x3a40]
cmp dword [rsi + rax + 4], 6
jne 0x140033f08
movsxd rdx, edi
shl rdx, 5
add rdx, rax
mov rcx, rbx
mov rax, qword [rsi + rax + 0x10]
call qword [case.0x14001f545.0]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3a38]
jl 0x140033ee2
mov esi, r12d
cmp dword [rbx + 0x1cb8], r12d
jle 0x140033f71
mov r14, r12
nop word [rax + rax]
mov rax, qword [rbx + 0x1cc0]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x140033f63
mov rcx, rdi
call fcn.1400309c0
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033f5a
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1cb8]
jl 0x140033f30
mov rcx, qword [rbx + 0x1cc0]
test rcx, rcx
je 0x140033fa3
mov qword [rbx + 0x1cb8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033f96
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cc0], r12
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x140033fd5
mov qword [rbx + 0x1cc8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033fc8
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cd0], r12
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x140034007
mov qword [rbx + 0x1cd8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140033ffa
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ce0], r12
mov qword [rbx + 0x1d18], r12
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x140034040
mov qword [rbx + 0x1ce8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034033
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cf0], r12
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x140034072
mov qword [rbx + 0x1cf8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034065
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d00], r12
mov qword [rbx + 0x1f58], r12
mov qword [rbx + 0x1d28], r12
mov qword [rbx + 0x1d20], r12
mov qword [rbx + 0x1db0], r12
mov qword [rbx + 0x1d98], r12
mov qword [rbx + 0x1d38], r12
mov rcx, qword [rbx + 0x1e80]
test rcx, rcx
je 0x1400340ce
mov qword [rbx + 0x1e78], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400340c1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e80], r12
mov rcx, qword [rbx + 0x1e90]
test rcx, rcx
je 0x140034100
mov qword [rbx + 0x1e88], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400340f3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e90], r12
mov rcx, qword [rbx + 0x1ea0]
test rcx, rcx
je 0x140034132
mov qword [rbx + 0x1e98], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034125
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ea0], r12
mov rcx, qword [rbx + 0x1ee0]
test rcx, rcx
je 0x140034164
mov qword [rbx + 0x1ed8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034157
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ee0], r12
mov rcx, qword [rbx + 0x1ef0]
test rcx, rcx
je 0x140034196
mov qword [rbx + 0x1ee8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034189
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ef0], r12
mov qword [rbx + 0x1f20], r12
mov qword [rbx + 0x1f18], r12
mov qword [rbx + 0x1f10], r12
mov edi, r12d
cmp dword [rbx + 0x1ef8], r12d
jle 0x1400341de
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rbx + 0x1f00]
mov rcx, qword [rcx + rsi]
call fcn.14004f4a0
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rbx + 0x1ef8]
jl 0x1400341c0
mov rcx, qword [rbx + 0x1f00]
test rcx, rcx
je 0x140034210
mov qword [rbx + 0x1ef8], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034203
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f00], r12
lea rcx, [rbx + 0x21e8]
call fcn.14004e5e0
mov rcx, qword [rbx + 0x2218]
test rcx, rcx
je 0x14003424e
mov qword [rbx + 0x2210], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034241
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2218], r12
mov rcx, qword [rbx + 0x2228]
test rcx, rcx
je 0x140034280
mov qword [rbx + 0x2220], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034273
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2228], r12
lea rcx, [rbx + 0x2188]
call fcn.14004e760
mov rcx, qword [rbx + 0x21b8]
test rcx, rcx
je 0x1400342be
mov qword [rbx + 0x21b0], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400342b1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21b8], r12
mov rcx, qword [rbx + 0x21d8]
test rcx, rcx
je 0x1400342f0
mov qword [rbx + 0x21d0], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400342e3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21d8], r12
mov rcx, qword [rbx + 0x3980]
test rcx, rcx
je 0x140034322
mov qword [rbx + 0x3978], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034315
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3980], r12
mov rcx, qword [rbx + 0x3990]
test rcx, rcx
je 0x140034354
mov qword [rbx + 0x3988], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034347
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3990], r12
mov rcx, qword [rbx + 0x2250]
test rcx, rcx
je 0x140034386
mov qword [rbx + 0x2248], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034379
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2250], r12
mov rcx, qword [rbx + 0x2260]
test rcx, rcx
je 0x1400343b8
mov qword [rbx + 0x2258], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400343ab
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2260], r12
mov rcx, qword [rbx + 0x2270]
test rcx, rcx
je 0x1400343ea
mov qword [rbx + 0x2268], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400343dd
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2270], r12
mov rcx, qword [rbx + 0x3a20]
test rcx, rcx
je 0x14003441c
mov qword [rbx + 0x3a18], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x14003440f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3a20], r12
mov rcx, qword [rbx + 0x3a10]
test rcx, rcx
je 0x14003444e
mov qword [rbx + 0x3a08], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x140034441
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3a10], r12
cmp qword [rbx + 0x3a58], 0
je 0x14003447f
mov rdi, qword [rbx + 0x3a58]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140034478
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3a58], r12
mov rcx, qword [rbx + 0x3a68]
test rcx, rcx
je 0x1400344b1
mov qword [rbx + 0x3a60], r12
mov rax, qword [0x1407065c0]
test rax, rax
je 0x1400344a4
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3a68], r12
mov byte [rbx], 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