Function at 0x4118c8
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x00506260]
mov ecx, eax
neg ecx
not ecx
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
sete byte [rsp + 0x2d]
mov eax, dword [0x00506268]
cmp eax, 0xa
setl byte [rsp + 0x2e]
mov eax, 0x78cc85dd
mov r12d, 0xffffffff
mov r15d, 0x65f40bb
mov r13d, 0x325b9ba8
jmp 0x411980
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov eax, dword [0x00506260]
mov ecx, eax
neg ecx
not ecx
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, r12d
sete cl
mov eax, 0xbc92d9cb
mov ebx, 0xc2e269
cmove eax, ebx
cmp dword [0x00506268], 0xa
setl dl
mov ebp, 0xbc92d9cb
cmovge eax, ebp
xor dl, cl
cmovne eax, ebx
jmp 0x411980
cmp edx, 0x7e05dfec
jne 0x411de1
mov rax, qword [rsp + 0x30]
mov eax, 0xa155652b
cmp eax, 0x65f40ba
jle 0x4119bf
cmp eax, 0x67fb388a
jg 0x411a72
cmp eax, 0x521f7542
jg 0x411b2f
cmp eax, 0x325b9ba8
je 0x411be2
cmp eax, 0x4cad8f0a
je 0x411c22
cmp eax, 0x65f40bb
jne 0x411980
jmp 0x411de3
cmp eax, 0xbc92d9ca
jg 0x411ac9
cmp eax, 0xab6c9198
jg 0x411b60
cmp eax, 0x8ee63669
je 0x411c2c
cmp eax, 0xa155652b
jne 0x411980
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x30], rax
mov eax, dword [0x00506290]
lea ecx, [rax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
sete al
cmp dword [0x005176d4], 0xa
setl cl
mov edx, ecx
and dl, al
xor cl, al
or cl, dl
mov ebp, 0xd7ce9788
mov eax, 0xe6e8bb0e
cmovne ebp, eax
mov ecx, 0xd7ce9788
mov eax, 0x7e05dfec
cmovne ecx, eax
mov eax, 0xc0532f1e
mov edx, eax
cmp edx, 0xd7ce9787
jle 0x411a5c
cmp edx, 0xd7ce9788
je 0x411a6b
cmp edx, 0xe6e8bb0e
mov eax, ecx
je 0x411a3b
jmp 0x411dd3
cmp edx, 0xc0532f1e
mov eax, ebp
je 0x411a3b
jmp 0x411ddf
mov eax, 0xe6e8bb0e
jmp 0x411a3b
cmp eax, 0x78cc85dc
jg 0x411b85
cmp eax, 0x67fb388b
je 0x411c6c
cmp eax, 0x74da7bc2
jne 0x411980
mov qword [rsp + 0x38], r14
mov eax, dword [0x00506260]
mov ecx, dword [0x00506268]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, r12d
sete al
cmp ecx, 0xa
setl bl
xor bl, al
mov ebp, 0xab6c9199
mov ebx, 0x7f7101aa
jmp 0x411b19
cmp eax, 0xc2e268
jg 0x411bc2
cmp eax, 0xbc92d9cb
je 0x411cb2
cmp eax, 0xf3b91802
jne 0x411980
mov eax, dword [0x00506260]
mov ecx, dword [0x00506268]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, r12d
sete al
cmp ecx, 0xa
setl bl
xor bl, al
mov ebp, 0x133a81b
mov ebx, 0x67a06459
cmovne ebp, ebx
cmp edx, r12d
mov eax, ebp
cmove eax, ebx
cmp ecx, 0xa
cmovge eax, ebp
jmp 0x411980
cmp eax, 0x521f7543
je 0x411d3e
cmp eax, 0x67a06459
jne 0x411980
mov al, byte [rsp + 0x2f]
test al, al
mov eax, 0x74da7bc2
mov ecx, 0x8ee63669
cmovne eax, ecx
xor r14d, r14d
jmp 0x411980
cmp eax, 0xab6c9199
je 0x411d48
cmp eax, 0xb7d5c74c
jne 0x411980
mov eax, 0x74da7bc2
mov r14, qword [rsp + 0x40]
jmp 0x411980
cmp eax, 0x7f7101aa
je 0x411d6f
cmp eax, 0x78cc85dd
jne 0x411980
mov cl, byte [rsp + 0x2d]
mov al, byte [rsp + 0x2e]
mov edx, ecx
xor dl, al
mov edx, 0x521f7543
cmovne edx, r13d
test al, al
mov eax, edx
cmovne eax, r13d
test cl, cl
cmove eax, edx
jmp 0x411980
cmp eax, 0xc2e269
je 0x411dc9
cmp eax, 0x133a81b
jne 0x411980
mov eax, 0xf3b91802
jmp 0x411980
test rsi, rsi
setne byte [rsp + 0x2f]
mov eax, dword [0x00506260]
mov ecx, eax
neg ecx
not ecx
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, r12d
sete cl
mov eax, 0x521f7543
mov ebp, 0x4cad8f0a
cmove eax, ebp
cmp dword [0x00506268], 0xa
setl dl
mov ebx, 0x521f7543
jmp 0x411c5f
mov eax, 0x67fb388b
jmp 0x411980
mov eax, dword [0x00506260]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, r12d
sete cl
mov eax, 0xbc92d9cb
mov ebp, 0xa155652b
cmove eax, ebp
cmp dword [0x00506268], 0xa
setl dl
mov ebx, 0xbc92d9cb
cmovge eax, ebx
xor dl, cl
cmovne eax, ebp
jmp 0x411980
mov eax, dword [0x00506260]
mov ecx, dword [0x00506268]
mov edx, eax
neg edx
not edx
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
and eax, edx
sete dl
cmp ecx, 0xa
setl bl
xor bl, dl
mov edx, 0x133a81b
mov ebp, 0xf3b91802
cmovne edx, ebp
test eax, eax
mov eax, edx
cmove eax, ebp
cmp ecx, 0xa
cmovge eax, edx
jmp 0x411980
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x30], rax
mov eax, dword [0x00506290]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, r12d
sete al
cmp dword [0x005176d4], 0xa
setl cl
mov edx, ecx
and dl, al
xor cl, al
or cl, dl
mov ebp, 0xd7ce9788
mov eax, 0xe6e8bb0e
cmovne ebp, eax
mov ecx, 0xd7ce9788
mov eax, 0x7e05dfec
cmovne ecx, eax
mov eax, 0xc0532f1e
mov edx, eax
cmp edx, 0xd7ce9787
jle 0x411d28
cmp edx, 0xd7ce9788
je 0x411d37
cmp edx, 0xe6e8bb0e
mov eax, ecx
je 0x411d07
jmp 0x41196a
cmp edx, 0xc0532f1e
mov eax, ebp
je 0x411d07
jmp 0x411de1
mov eax, 0xe6e8bb0e
jmp 0x411d07
mov eax, 0x325b9ba8
jmp 0x411980
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov r9, rdi
call sub.msvcrt.dll_fwrite
mov rcx, rdi
call sub.msvcrt.dll_fflush
mov eax, 0x7f7101aa
jmp 0x411980
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov r9, rdi
call sub.msvcrt.dll_fwrite
mov rcx, rdi
call sub.msvcrt.dll_fflush
mov eax, dword [0x00506260]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, r12d
sete cl
mov eax, 0xab6c9199
cmove eax, r15d
cmp dword [0x00506268], 0xa
setl dl
mov ebp, 0xab6c9199
cmovge eax, ebp
xor dl, cl
cmovne eax, r15d
jmp 0x411980
mov eax, 0xb7d5c74c
jmp 0x411980
cmp edx, 0x7e05dfec
je 0x411920
jmp 0x411ddf
jmp 0x411de1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret