Function at 0x140008950
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 0x1400089af
cmp byte [rcx + 1], 0
je 0x1400089af
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1400089af
mov rcx, rdi
call fcn.140025160
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x1400089a6
dec dword [rax + 0x3b4]
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 0x1400090b1
cmp byte [rbx + 0x2f01], r15b
je 0x140008a37
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140008a37
mov rsi, qword [0x14024a8f0]
mov qword [0x14024a8f0], rbx
mov dword [rbx + 0x2f04], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400179d0
mov rbp, rax
lea rdx, [0x1400c2344]
mov rcx, rdi
call fcn.140002f30
mov rdi, rax
test rax, rax
je 0x140008a30
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]
mov qword [0x14024a8f0], rsi
mov edx, 6
mov rcx, rbx
call fcn.140005db0
mov ebp, r15d
mov eax, dword [rbx + 0x1a88]
test eax, eax
jle 0x140008ab9
mov rsi, r15
test rsi, rsi
js 0x140008a5d
cmp ebp, eax
jl 0x140008a77
mov r8d, 0x675
lea rdx, str.C:UsersdearquizDownloadsKING_OF_WEAPON_XKING_OF_WEAPON_Ximguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1a90]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x140008aaa
mov rcx, rdi
call fcn.140005390
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008aa1
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
inc rsi
mov eax, dword [rbx + 0x1a88]
cmp ebp, eax
jl 0x140008a54
mov rcx, qword [rbx + 0x1a90]
test rcx, rcx
je 0x140008aeb
mov qword [rbx + 0x1a88], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008ade
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a90], r15
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x140008b1d
mov qword [rbx + 0x1a98], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008b10
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1aa0], r15
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x140008b4f
mov qword [rbx + 0x1aa8], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008b42
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ab0], r15
mov qword [rbx + 0x1ae0], r15
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x140008b88
mov qword [rbx + 0x1ab8], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008b7b
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ac0], r15
mov rcx, qword [rbx + 0x1ad0]
test rcx, rcx
je 0x140008bba
mov qword [rbx + 0x1ac8], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008bad
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ad0], r15
mov qword [rbx + 0x1ca0], r15
mov qword [rbx + 0x1af8], r15
mov qword [rbx + 0x1af0], r15
mov qword [rbx + 0x1ae8], r15
mov qword [rbx + 0x1b78], r15
mov qword [rbx + 0x1b60], r15
mov qword [rbx + 0x1b00], r15
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x140008c1d
mov qword [rbx + 0x1c10], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008c10
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c18], r15
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x140008c4f
mov qword [rbx + 0x1c20], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008c42
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c28], r15
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x140008c81
mov qword [rbx + 0x1c30], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008c74
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c38], r15
mov rcx, qword [rbx + 0x1c78]
test rcx, rcx
je 0x140008cb3
mov qword [rbx + 0x1c70], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008ca6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c78], r15
mov rcx, qword [rbx + 0x1c88]
test rcx, rcx
je 0x140008ce5
mov qword [rbx + 0x1c80], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008cd8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c88], r15
mov r14d, r15d
mov eax, dword [rbx + 0x1c90]
test eax, eax
jle 0x140008ddb
mov rbp, r15
nop dword [rax]
test rbp, rbp
js 0x140008d0a
cmp r14d, eax
jl 0x140008d24
mov r8d, 0x675
lea rdx, str.C:UsersdearquizDownloadsKING_OF_WEAPON_XKING_OF_WEAPON_Ximguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1c98]
mov rdi, qword [rax + rbp*8]
test rdi, rdi
je 0x140008dc6
mov rsi, qword [rdi + 0x30]
test rsi, rsi
je 0x140008d64
mov rcx, rsi
call fcn.140001990
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008d5b
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x140008d91
mov rcx, rsi
call fcn.140001990
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008d87
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0x70]
lea r9, [0x140018420]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400acf1c
nop
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008dbd
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc r14d
inc rbp
mov eax, dword [rbx + 0x1c90]
cmp r14d, eax
jl 0x140008d00
mov rcx, qword [rbx + 0x1c98]
test rcx, rcx
je 0x140008e0d
mov qword [rbx + 0x1c90], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008e00
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c98], r15
lea rcx, [rbx + 0x1f30]
call fcn.1400185f0
mov rcx, qword [rbx + 0x1f60]
test rcx, rcx
je 0x140008e4b
mov qword [rbx + 0x1f58], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008e3e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f60], r15
mov rcx, qword [rbx + 0x1f70]
test rcx, rcx
je 0x140008e7d
mov qword [rbx + 0x1f68], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008e70
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f70], r15
lea rcx, [rbx + 0x1ed0]
call fcn.1400187d0
mov rcx, qword [rbx + 0x1f00]
test rcx, rcx
je 0x140008ebb
mov qword [rbx + 0x1ef8], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008eae
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f00], r15
mov rcx, qword [rbx + 0x1f20]
test rcx, rcx
je 0x140008eed
mov qword [rbx + 0x1f18], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008ee0
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f20], r15
mov rcx, qword [rbx + 0x2ed8]
test rcx, rcx
je 0x140008f1f
mov qword [rbx + 0x2ed0], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008f12
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ed8], r15
mov rcx, qword [rbx + 0x2ee8]
test rcx, rcx
je 0x140008f51
mov qword [rbx + 0x2ee0], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008f44
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ee8], r15
mov rcx, qword [rbx + 0x1f98]
test rcx, rcx
je 0x140008f83
mov qword [rbx + 0x1f90], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008f76
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f98], r15
mov rcx, qword [rbx + 0x1fa8]
test rcx, rcx
je 0x140008fb5
mov qword [rbx + 0x1fa0], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008fa8
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fa8], r15
mov rcx, qword [rbx + 0x1fb8]
test rcx, rcx
je 0x140008fe7
mov qword [rbx + 0x1fb0], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x140008fda
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fb8], r15
mov rcx, qword [rbx + 0x2f30]
test rcx, rcx
je 0x140009019
mov qword [rbx + 0x2f28], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x14000900c
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f30], r15
mov rcx, qword [rbx + 0x2f20]
test rcx, rcx
je 0x14000904b
mov qword [rbx + 0x2f18], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x14000903e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f20], r15
cmp qword [rbx + 0x2f68], 0
je 0x14000907c
mov rdi, qword [rbx + 0x2f68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140009075
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x2f68], r15
mov rcx, qword [rbx + 0x2f78]
test rcx, rcx
je 0x1400090ae
mov qword [rbx + 0x2f70], r15
mov rax, qword [0x14024a8f0]
test rax, rax
je 0x1400090a1
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f78], 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