Function at 0x1800c4ef0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov byte [rcx + 0x18], 1
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c4f55
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + gethostname]
test al, al
je 0x1800c5046
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c4f99
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + 0xd8]
mov rdi, rax
movsxd rdx, dword [rax + 0x20]
mov ecx, 0x2000
sub ecx, edx
lea r14, [rax + 0x24]
add r14, rdx
mov esi, 0x47
movsxd rax, ecx
cmp rax, rsi
cmovb rsi, rax
mov eax, r14d
test rsi, rsi
je 0x1800c4ff8
mov r8, rsi
lea rdx, str.___________________log4z_thread_started________________________________
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rdi + 0x20]
lea eax, [rsi + r14]
sub edx, r14d
add edx, eax
mov dword [rdi + 0x20], edx
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c5025
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
mov r9d, 0x783
lea r8, str.e:zhanlue_rcimage_srcmisclog4zlog4z.cpp
mov rdx, rdi
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + 0x40]
xor r13d, r13d
mov r12d, r13d
cmp dword [rbx + 0xa8], r13d
jl 0x1800c5410
lea r15, [rbx + 0xc8]
cmp byte [r15 + 0x54], 0
je 0x1800c53f6
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c5090
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + gethostname]
test al, al
je 0x1800c53f6
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c50d4
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + 0xd8]
mov r13, rax
movsxd rcx, dword [rax + 0x20]
mov edx, 0x2000
sub edx, ecx
lea rdi, [rcx + 0x24]
add rdi, rax
mov qword [rbp - 0x49], rdi
movsxd rcx, edx
lea rsi, [rcx + rdi]
mov qword [rbp - 0x41], rsi
mov r14d, 0xa
cmp rcx, r14
cmovb r14, rcx
mov qword [rbp - 0x39], rdi
test r14, r14
je 0x1800c5141
mov r8, r14
lea rdx, str.logger_id
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
movsxd rdx, r12d
test r12d, r12d
jns 0x1800c5162
neg rdx
mov rax, rsi
sub rax, rdi
cmp rax, 1
jle 0x1800c5162
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
sub rax, rdi
cmp rax, 0x40
jbe 0x1800c5182
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800bf0f0
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
mov r14d, 5
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x1800c519b
mov r14, rax
test rax, rax
je 0x1800c51b4
mov r8, r14
lea rdx, str._key
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 - 8]
lea rdx, [r15 - 0x18]
cmp qword [r15], 0x10
jb 0x1800c51c5
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x1800c51e9
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 6
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x1800c5202
mov r14, rax
test rax, rax
je 0x1800c521b
mov r8, r14
lea rdx, str._name
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x18]
lea rdx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x1800c522d
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x1800c5251
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 6
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x1800c526a
mov r14, rax
test rax, rax
je 0x1800c5283
mov r8, r14
lea rdx, str._path
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x38]
lea rdx, [r15 + 0x28]
cmp qword [r15 + 0x40], 0x10
jb 0x1800c5295
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x1800c52b9
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 7
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x1800c52d2
mov r14, rax
test rax, rax
je 0x1800c52eb
mov r8, r14
lea rdx, str._level
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
movsxd rdx, dword [r15 + 0x48]
test rdx, rdx
jns 0x1800c530d
neg rdx
mov rax, rsi
sub rax, rdi
cmp rax, 1
jle 0x1800c530d
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
sub rax, rdi
cmp rax, 0x40
jbe 0x1800c532d
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800bf0f0
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
mov r14d, 9
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x1800c5346
mov r14, rax
test rax, rax
je 0x1800c535b
mov r8, r14
lea rdx, str._display
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
sub rsi, rdi
cmp byte [r15 + 0x4c], 0
je 0x1800c5381
mov r14d, 4
cmp rsi, r14
jae 0x1800c5378
mov r14, rsi
test rsi, rsi
je 0x1800c53a9
lea rdx, str.true
jmp 0x1800c539b
mov r14d, 5
cmp rsi, r14
jae 0x1800c5394
mov r14, rsi
test rsi, rsi
je 0x1800c53a9
lea rdx, str.false
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
sub edi, dword [rbp - 0x49]
add dword [r13 + 0x20], edi
mov eax, dword [0x18022d830]
test al, 1
jne 0x1800c53d5
or eax, 1
mov dword [0x18022d830], eax
call fcn.1800c1450
lea rcx, [0x180195130]
call fcn.18017e6bc
nop
mov r9d, 0x78d
lea r8, str.e:zhanlue_rcimage_srcmisclog4zlog4z.cpp
mov rdx, r13
lea rcx, [0x18022d850]
mov rax, qword [0x18022d850]
call qword [rax + 0x40]
inc r12d
add r15, 0xa8
cmp r12d, dword [rbx + 0xa8]
jle 0x1800c5060
xor r13d, r13d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov qword [rbp - 0x59], r13
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r15, rax
nop
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.1800c4d70
test al, al
je 0x1800c560b
mov rdi, qword [rbp - 0x59]
mov eax, dword [rdi]
test eax, eax
js 0x1800c55f6
cmp eax, dword [rbx + 0xa8]
jg 0x1800c55f6
cdqe
imul rsi, rax, 0xa8
add rsi, rbx
cmp dword [rdi + 4], 0
je 0x1800c5537
movsxd r8, dword [rdi + 0x20]
lea rdx, [rdi + 0x24]
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], InitCommonControls
mov byte [rbp - 0x49], 0
lea rcx, [rbp - 0x49]
call fcn.180007140
nop
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 4]
mov edx, dword [rdi]
mov rcx, rbx
call fcn.1800c3690
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x1800c5505
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c5500
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c56c2
call fcn.18017df04
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], InitCommonControls
mov byte [rbp - 0x49], 0
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x1800c55f6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
jmp 0x1800c55f6
inc qword [rbx + 0x12d0]
cmp byte [rsi + 0x11c], 0
je 0x1800c55f6
mov r8d, dword [rdi + 0xc]
cmp r8d, dword [rsi + 0x110]
jl 0x1800c55f6
cmp byte [rsi + 0x114], 0
je 0x1800c5571
lea rdx, [rdi + 0x24]
mov rcx, rbx
call fcn.1800c2410
cmp byte [rsi + 0x115], 0
je 0x1800c55e4
mov rdx, rdi
mov rcx, rbx
call fcn.1800c45e0
test al, al
je 0x1800c55f6
movsxd r14, dword [rdi + 0x20]
mov r9, qword [rsi + 0x140]
test r9, r9
je 0x1800c55ce
test r14, r14
je 0x1800c55ce
lea rcx, [rdi + 0x24]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
je 0x1800c55ce
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x1800c55ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
mov eax, dword [rsi + 0x13c]
add eax, dword [rdi + 0x20]
mov dword [rsi + 0x13c], eax
movsxd rax, dword [rdi]
inc dword [rbp + rax*4 - 0x29]
inc qword [rbx + 0x12d8]
movsxd rax, dword [rdi + 0x20]
add qword [rbx + 0x12e0], rax
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0xe0]
jmp 0x1800c5440
mov r14d, r13d
cmp dword [rbx + 0xa8], 0
jl 0x1800c5673
lea rsi, [rbp - 0x29]
lea rdi, [rbx + 0x140]
movzx edx, byte [rdi - 0x24]
movzx eax, dl
test dl, dl
je 0x1800c5647
cmp dword [rsi], 0
jle 0x1800c5647
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800c5644
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
movzx eax, byte [rdi - 0x24]
mov dword [rsi], r13d
test al, al
jne 0x1800c565c
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800c565c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
inc r14d
add rsi, 4
add rdi, 0xa8
cmp r14d, dword [rbx + 0xa8]
jle 0x1800c5622
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x18], 0
jne 0x1800c568e
cmp qword [rbx + 0xf20], 0
je 0x1800c56c9
cmp dword [rbx + 0x30], 0
je 0x1800c5440
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rax, r15
movsxd rcx, dword [rbx + 0x30]
cmp rax, rcx
jle 0x1800c5440
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0xa0]
jmp 0x1800c5434
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov esi, r13d
cmp dword [rbx + 0xa8], 0
jl 0x1800c5733
mov r14, r13
lea rdi, [rbx + 0x140]
nop
cmp byte [rdi - 0x24], 0
je 0x1800c571f
mov byte [rdi - 0x24], 0
test r14, r14
js 0x1800c570a
cmp esi, dword [rbx + 0xa8]
jg 0x1800c570a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800c571f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
jmp 0x1800c571f
mov r8d, 6
lea rdx, str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov rcx, rbx
call fcn.1800c2410
inc esi
inc r14
add rdi, 0xa8
cmp esi, dword [rbx + 0xa8]
jle 0x1800c56e0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18017dee0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret