Function at 0x140009050
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 rax, qword [0x1401366a0]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1400090b6
cmp byte [rax + 1], 0
je 0x1400090b6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x1400090b6
mov rcx, rbx
call fcn.140038800
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400090a6
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401366a0]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d98]
test rcx, rcx
je 0x1400090ef
mov qword [rdi + 0x3d90], r12
test rax, rax
je 0x1400090db
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d98], r12
mov rax, qword [0x1401366a0]
cmp byte [rdi], r12b
je 0x140009978
cmp byte [rdi + 0x5dc0], r12b
je 0x140009159
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140009159
mov dword [rax + 0x5dc4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001ee60
mov rsi, rax
lea rdx, [0x1400e2ccc]
mov rcx, rbx
call fcn.140006010
mov rbx, rax
test rax, rax
je 0x140009159
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, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.140021930
mov esi, r12d
cmp dword [rdi + 0x5d80], r12d
jle 0x1400091b2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5d88]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400091a4
mov rcx, rbx
call fcn.140023510
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000919b
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x5d80]
jl 0x140009170
mov ebx, r12d
cmp dword [rdi + 0x5e08], r12d
jle 0x1400091f1
mov rsi, r12
mov rcx, qword [rdi + 0x5e10]
cmp dword [rsi + rcx + 4], 6
jne 0x1400091e3
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 + 0x5e08]
jl 0x1400091c1
mov esi, r12d
cmp dword [rdi + 0x3f98], r12d
jle 0x140009241
mov r14, r12
mov rax, qword [rdi + 0x3fa0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009233
mov rcx, rbx
call fcn.140009fa0
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000922a
dec dword [rax + 0xfc]
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 + 0x3f98]
jl 0x140009200
mov rcx, qword [rdi + 0x3fa0]
test rcx, rcx
je 0x140009273
mov qword [rdi + 0x3f98], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009266
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa0], r12
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x1400092a5
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009298
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x1400092d7
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400092ca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov qword [rdi + 0x3ff8], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x140009310
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009303
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x140009342
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009335
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4a50], r12
mov qword [rdi + 0x4008], r12
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4098], r12
mov qword [rdi + 0x4080], r12
mov qword [rdi + 0x4010], r12
lea rcx, [rdi + 0x4738]
call fcn.1400041e0
mov rcx, qword [rdi + 0x4970]
test rcx, rcx
je 0x1400093aa
mov qword [rdi + 0x4968], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000939d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4970], r12
mov rcx, qword [rdi + 0x4980]
test rcx, rcx
je 0x1400093dc
mov qword [rdi + 0x4978], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400093cf
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4980], r12
mov rcx, qword [rdi + 0x4990]
test rcx, rcx
je 0x14000940e
mov qword [rdi + 0x4988], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009401
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4990], r12
mov rcx, qword [rdi + 0x49d0]
test rcx, rcx
je 0x140009440
mov qword [rdi + 0x49c8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009433
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d0], r12
mov rcx, qword [rdi + 0x49e0]
test rcx, rcx
je 0x140009472
mov qword [rdi + 0x49d8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009465
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49e0], r12
mov qword [rdi + 0x4a18], r12
mov qword [rdi + 0x4a10], r12
mov qword [rdi + 0x4a08], r12
mov ebp, r12d
cmp dword [rdi + 0x49f0], r12d
jle 0x14000955d
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x49f8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000954b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x1400094e3
mov rcx, rsi
call fcn.140003fe0
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400094da
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140009513
mov rcx, rsi
call fcn.140003fe0
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009509
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x14002b540]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400c93dc
nop
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009542
dec dword [rax + 0xfc]
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 + 0x49f0]
jl 0x1400094a0
mov rcx, qword [rdi + 0x49f8]
test rcx, rcx
je 0x14000958f
mov qword [rdi + 0x49f0], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009582
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f8], r12
lea rcx, [rdi + 0x4d28]
call fcn.14002b880
mov rcx, qword [rdi + 0x4d58]
test rcx, rcx
je 0x1400095cd
mov qword [rdi + 0x4d50], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400095c0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d58], r12
mov rcx, qword [rdi + 0x4d68]
test rcx, rcx
je 0x1400095ff
mov qword [rdi + 0x4d60], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400095f2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d68], r12
mov ebx, r12d
cmp dword [rdi + 0x4ca8], r12d
jle 0x140009648
mov rsi, r12
nop
mov rax, qword [rdi + 0x4cb0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000963a
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009633
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4ca8]
jl 0x140009610
mov rcx, qword [rdi + 0x4cb0]
test rcx, rcx
je 0x14000967a
mov qword [rdi + 0x4ca8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000966d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cb0], r12
lea rcx, [rdi + 0x4cd8]
call fcn.14002ba00
mov esi, r12d
cmp dword [rdi + 0x4cc8], r12d
jle 0x1400096e5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4cd0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140038170
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400096d7
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400096d0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4cc8]
jl 0x1400096a0
mov rcx, qword [rdi + 0x4cd0]
test rcx, rcx
je 0x140009717
mov qword [rdi + 0x4cc8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000970a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cd0], r12
mov rcx, qword [rdi + 0x4d18]
test rcx, rcx
je 0x140009749
mov qword [rdi + 0x4d10], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000973c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d18], r12
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x14000977b
mov qword [rdi + 0x5d20], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000976e
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d28], r12
mov rcx, qword [rdi + 0x5d38]
test rcx, rcx
je 0x1400097ad
mov qword [rdi + 0x5d30], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400097a0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d38], r12
mov rcx, qword [rdi + 0x4da8]
test rcx, rcx
je 0x1400097df
mov qword [rdi + 0x4da0], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400097d2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da8], r12
mov rcx, qword [rdi + 0x4db8]
test rcx, rcx
je 0x140009811
mov qword [rdi + 0x4db0], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009804
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db8], r12
mov rcx, qword [rdi + 0x4dc8]
test rcx, rcx
je 0x140009843
mov qword [rdi + 0x4dc0], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009836
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc8], r12
mov rcx, qword [rdi + 0x5df0]
test rcx, rcx
je 0x140009875
mov qword [rdi + 0x5de8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009868
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5df0], r12
mov rcx, qword [rdi + 0x5de0]
test rcx, rcx
je 0x1400098a7
mov qword [rdi + 0x5dd8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000989a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5de0], r12
cmp qword [rdi + 0x5e68], 0
je 0x1400098d8
mov rbx, qword [rdi + 0x5e68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400098d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e68], r12
mov rcx, qword [rdi + 0x5e78]
test rcx, rcx
je 0x14000990a
mov qword [rdi + 0x5e70], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x1400098fd
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e78], r12
mov rcx, qword [rdi + 0x5eb0]
test rcx, rcx
je 0x14000993c
mov qword [rdi + 0x5ea8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x14000992f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5eb0], r12
mov rcx, qword [rdi + 0x5ec0]
test rcx, rcx
je 0x14000996e
mov qword [rdi + 0x5eb8], r12
mov rax, qword [0x1401366a0]
test rax, rax
je 0x140009961
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ec0], r12
mov dword [rdi + 0x5ec8], r12d
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