Function at 0x140056980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, r9
mov rbp, rcx
xor r12d, r12d
test r8, r8
je 0x1400569c7
cmp word [r8], r12w
cmove r8, r12
mov qword [rax + 0x18], r8
mov ebx, r9d
and ebx, 0x10000
mov eax, r9d
and eax, 0x100000
mov dword [rsp + 0x98], eax
mov byte [rsp + 0x6c], r9b
mov qword [rsp + 0x120], r12
mov rax, qword [rsp + 0x1e0]
test rax, rax
je 0x140056a04
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0xa0]
call fcn.140063950
nop
mov qword [rsp + 0x100], r12
mov qword [rsp + 0x130], r12
mov qword [rsp + 0x110], r12
test rsi, 0xffffffff80000000
mov r15, r12
setne r15b
mov qword [rsp + 0x80], r15
test rsi, 0x60000
cmovne ebx, r12d
mov dword [rsp + 0x64], ebx
mov rax, rsi
shr rax, 0x15
and al, 1
mov qword [rsp + 0x140], rax
mov rax, rsi
shr rax, 0x16
and al, 1
mov qword [rsp + 0x170], rax
mov rax, rsi
shr rax, 0x17
and al, 1
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x1d8], 0
mov ebx, 8
mov qword [rsp + 0x138], rbx
test r15, r15
je 0x140056b4d
mov rax, qword [rsp + 0x1d0]
test rax, rax
je 0x140056c20
mov dword [rsp + 0x1e0], r12d
mov qword [rsp + 0x100], rax
mov r8d, 0x125
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x100]
call fcn.140036bcc
mov qword [rsp + 0x1d0], rax
cmp word [rax], 0
jne 0x140056af4
mov byte [rsp + 0x1d8], 1
jmp 0x140056b26
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x1d0]
call fcn.140068f80
test eax, eax
jg 0x140056b26
lea rcx, [rsp + 0xa0]
call fcn.14005b520
mov rax, 0xffffffff80070057
jmp 0x140057ee6
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x1d0]
call fcn.140068f80
mov r11, qword [rsp + 0x100]
mov qword [rsp + 0x1d0], r11
jmp 0x140056b55
mov r11, qword [rsp + 0x1d0]
test r11, r11
je 0x140056c20
cmp word [r11], 0
je 0x140056c20
mov edx, 0x5c
lea ecx, [rdx - 0x2d]
movzx eax, word [r11]
add r11, 2
cmp dx, ax
jne 0x140056b83
mov word [r11 - 2], cx
cmp word [r11], 0
jne 0x140056b71
mov rax, qword [rsp + 0x1d0]
cmp word [rax], 0
je 0x140056c20
nop dword [rax]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x1e0], r12d
mov r8d, 0xd
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0xb8]
call fcn.140036bcc
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0xb8]
cmp word [rcx], 0
je 0x140056c1a
mov qword [rsp + 0x108], rcx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x108]
lea r8, [rsp + 0xac]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
call fcn.140063830
mov rax, qword [rsp + 0x1d0]
cmp word [rax], 0
jne 0x140056ba0
movsxd rdi, dword [rsp + 0xac]
test edi, edi
je 0x140056c66
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x128], r13
cmp edi, 1
jne 0x140056c71
mov rax, qword [r13]
cmp word [rax], 0x3c
jne 0x140056c71
cmp word [rax + 2], 0x3e
jne 0x140056c71
cmp word [rax + 4], 0
jne 0x140056c71
mov r14b, dil
mov dword [rsp + 0x88], r14d
jmp 0x140056c7c
mov r13, r12
mov qword [rsp + 0x128], r12
xor r14b, r14b
mov dword [rsp + 0x88], r14d
mov qword [rsp + 0x168], rdi
cmp dword [rsp + 0x64], 0
jne 0x140056cec
xor eax, eax
mov rbx, rax
test edi, edi
jle 0x140056cec
lea r15d, [rax + 1]
nop dword [rax + rax]
mov r8d, 6
mov rdx, qword [r13 + rbx*8]
lea rcx, str._udext
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x140056cd4
movzx r14d, r14b
cmp rdi, r15
cmove r14d, r15d
mov dword [rsp + 0x98], r15d
bts rsi, 0x11
inc rbx
cmp rbx, rdi
jl 0x140056ca0
mov dword [rsp + 0x88], r14d
mov r15, qword [rsp + 0x80]
test r15, r15
je 0x140056d1d
test edi, edi
js 0x140056d04
test r13, r13
je 0x140056d1d
mov rax, qword [r13]
cmp word [rax], 0x3c
jne 0x140056d1d
lea rcx, [rsp + 0xa0]
call fcn.14005b520
mov rax, 0xffffffff80070057
jmp 0x140057ee6
mov rax, r15
neg rax
sbb edx, edx
and edx, 0x40000000
bts edx, 0x1f
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8d, [r14 + 7]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
cmove r13, r14
mov qword [rsp + 0xc0], r13
test r13, r13
jne 0x140056d85
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
mov edx, 0xe0000
lea rcx, [rsp + 0x70]
call fcn.140063580
nop
mov r15, qword [rsp + 0x70]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov edi, 0x200
mov r8d, edi
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], edi
jb 0x140057e9e
cmp dword [r15 + 0x1b4], 0x46424246
jne 0x140057e9e
mov eax, 0xaa55
cmp ax, word [r15 + 0x1fe]
jne 0x140057e9e
movzx r12d, word [r15 + 0x1b2]
inc r12d
mov eax, r12d
shl eax, 9
movsxd rbx, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.14005c450
cmp rbx, rax
jne 0x140057e9e
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], edi
jb 0x140057e9e
movzx eax, word [r15 + 0xa]
mov qword [rsp + 0x78], rax
mov ecx, dword [r15 + 0xc]
mov qword [rsp + 0x118], rcx
mov edi, 8
mov rbp, r14
add rax, rdi
mov qword [rsp + 0xd8], rax
movzx eax, word [r15]
add eax, r12d
movsxd rcx, eax
mov qword [rsp + 0xb8], rcx
movzx eax, word [r15 + 8]
mov dword [rsp + 0xe0], eax
mov r12d, r14d
mov ebx, esi
and ebx, 0x80000
mov r14d, esi
and r14d, 0x60000
xor r8d, r8d
mov edx, 0x8600
mov rcx, r13
call fcn.14005c450
cmp rax, 0x8600
jne 0x140056f26
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, 0x200
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056f26
cmp dword [rsp + 0x60], 0x200
jne 0x140056f26
movzx edi, byte [r15 + 0x1f8]
movzx eax, dil
and al, 0xe0
and edi, 0x1f
cmp dword [r15 + 0x1b4], 0x46424246
jne 0x140056f26
mov r12d, 0x10000
test al, al
jne 0x140056fa1
mov rax, qword [r15 + 0x1f0]
mov qword [rsp + 0xd8], rax
mov rbp, qword [r15 + 0x1e8]
jmp 0x140056fa1
cmp qword [rsp + 0x118], rdi
jbe 0x140056fa1
test ebx, ebx
je 0x140056fa1
mov rbx, qword [rsp + 0xd8]
shl rbx, 9
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.14005c450
cmp rbx, rax
jne 0x140056fa1
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov ebx, 0x200
mov r8d, ebx
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056fa1
cmp dword [rsp + 0x60], ebx
jne 0x140056fa1
cmp byte [r15], 0xeb
jne 0x140056fa1
mov eax, 0xaa55
cmp ax, word [r15 + 0x1fe]
jne 0x140056fa1
mov rbp, qword [rsp + 0x118]
sub rbp, rdi
mov r13d, dword [rsp + 0xe0]
lea ebx, [r13 + r13*4]
shl ebx, 9
lea edx, [rbx + 0xc64]
mov rdi, qword [rsp + 0x1c8]
mov rcx, rdi
call fcn.1400635c0
movsxd r11, ebx
mov rax, qword [rdi]
lea rax, [rax + r11*2 + 0x200]
and rax, 0xfffffffffffffe00
mov qword [rsp + 0xc8], rax
mov rbx, qword [rsp + 0xb8]
cmp rbx, 0x44
jle 0x140057006
mov edx, r13d
shl edx, 0xa
lea rcx, [rsp + 0x70]
call fcn.1400635c0
mov r15, qword [rsp + 0x70]
add r13d, ebx
mov rdi, r15
shl rbx, 9
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0xc0]
call fcn.14005c450
cmp rbx, rax
je 0x140057061
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
mov rax, qword [rsp + 0xc0]
cmp rax, 0xffffffffffffffff
je 0x14005704b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
mov rcx, qword [rsp + 0x1c8]
mov rbx, qword [rcx]
mov qword [rsp + 0xd0], rbx
test r14d, r14d
je 0x140057083
mov edx, dword [rsp + 0x64]
test edx, edx
je 0x14005709a
jmp 0x140057087
mov edx, dword [rsp + 0x64]
xor r9d, r9d
mov rbp, r9
mov rcx, r9
mov qword [rsp + 0xd8], rcx
jmp 0x1400570a5
mov rcx, qword [rsp + 0xd8]
xor r9d, r9d
mov rax, qword [rsp + 0x118]
shl rax, 9
mov qword [rsp + 0xf8], rax
test r14d, r14d
je 0x140057194
test edx, edx
jne 0x140057194
mov eax, r9d
test rbp, rbp
je 0x140057125
mov rax, rbp
shl rax, 9
or r12d, 0xff00
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, str._udext_
mov r8d, r12d
lea rdx, str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
cdqe
lea rbx, [rbx + rax*2]
mov qword [rsp + 0xd0], rbx
mov word [rbx], r9w
test rbp, rbp
je 0x140057156
mov dword [rsp + 0x98], 0xffffffff
mov rax, rbp
shl rax, 9
mov qword [rsp + 0xf8], rax
bt rsi, 0x12
jae 0x140057194
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
mov rax, qword [rsp + 0xc0]
cmp rax, 0xffffffffffffffff
je 0x140057180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
xor eax, eax
jmp 0x140057ee6
mov r8d, dword [rsp + 0x88]
test r8b, r8b
jne 0x14005727e
mov rax, qword [rsp + 0xb8]
mov ebx, eax
cmp eax, r13d
jge 0x14005727e
mov rsi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov ebp, 0x200
nop dword [rax]
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], ebp
jne 0x140057245
mov rcx, rdi
mov rdx, r12
mov r8, rbp
call fcn.14010cd30
add rdi, 0x1fe
nop dword [rax]
movzx eax, byte [r15]
test al, al
je 0x140057276
movzx eax, al
add eax, 2
movsxd rcx, eax
add rcx, r15
cmp rcx, rdi
ja 0x14005722e
mov r15, rcx
jmp 0x140057210
inc ebx
cmp ebx, r13d
mov r9d, 0
jl 0x1400571d0
mov r8d, dword [rsp + 0x88]
jmp 0x14005727e
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp rsi, 0xffffffffffffffff
je 0x140057260
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
mov r8d, dword [rsp + 0x88]
mov r9d, 0xfde9
mov dword [rsp + 0x68], r9d
mov r11d, dword [rsp + 0x64]
movsxd rax, r14d
mov qword [rsp + 0x150], rax
mov rdi, qword [rsp + 0xc8]
xor ebx, ebx
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x148], rdx
mov byte [rsp + 0x1e0], 0
mov qword [rsp + 0x108], r15
mov dword [rsp + 0xb0], ebx
test r8b, r8b
cmovne rdx, r15
mov r13, qword [rsp + 0xc0]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
jmp 0x140057317
mov rsi, qword [rsp + 0x80]
jmp 0x140057317
mov rsi, qword [rsp + 0x80]
jmp 0x140057317
mov rsi, qword [rsp + 0x80]
jmp 0x140057317
mov rsi, qword [rsp + 0x80]
jmp 0x140057317
mov rsi, qword [rsp + 0x80]
xor ebx, ebx
cmp rdx, r15
jae 0x140057a81
movzx eax, byte [rdx]
add ax, 2
mov qword [rsp + 0x108], rdx
lea r8, [rdx + 0xe]
movzx ecx, ax
sub ecx, 0xe
mov rbp, rdx
movzx eax, ax
add rdx, rax
mov qword [rsp + 0x90], rdx
movzx r14d, byte [rbp + 1]
mov eax, dword [rbp + 2]
cmp rax, r10
jb 0x14005735b
or r14b, 1
movzx eax, byte [rsp + 0x6c]
test al, al
je 0x140057369
test al, r14b
je 0x140057317
mov esi, ebx
mov word [rdi], bx
test ecx, ecx
jle 0x14005740c
cmp byte [r8], 0
je 0x14005740c
movsxd rdi, ecx
add rdi, r8
movzx ebx, byte [rdi]
mov byte [rdi], 0
movzx ecx, r9w
mov dword [rsp + 0x28], 0x800
mov r12, qword [rsp + 0xc8]
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
mov r12, qword [rsp + 0x138]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx esi, al
mov byte [rdi], bl
mov rdi, qword [rsp + 0xc8]
xor ebx, ebx
mov word [rdi + rsi*2], bx
test esi, esi
jg 0x1400573dc
test r12d, r12d
jne 0x140057766
jmp 0x1400573f5
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x64]
jmp 0x14005740c
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x64]
cmp byte [rsp + 0x170], 0
je 0x14005742c
mov eax, dword [rbp + 6]
test eax, 0x1ff
jne 0x140057303
test eax, eax
je 0x1400572e5
cmp byte [rsp + 0x140], 0
je 0x14005743c
test r14b, 0x7c
jne 0x1400574a7
mov r12, qword [rsp + 0x168]
test r12, r12
je 0x1400574a7
test r12, r12
jle 0x14005730d
nop word [rax + rax]
mov rax, qword [rsp + 0x128]
mov rdx, qword [rax + rbx*8]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x1400574a7
inc rbx
cmp rbx, r12
jl 0x140057460
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov r11d, dword [rsp + 0x64]
xor ebx, ebx
jmp 0x140057317
mov eax, dword [rbp + 6]
mov r12, rax
test r14b, r14b
jns 0x1400574b6
shl r12, 9
mov r11d, dword [rsp + 0x64]
test r11d, r11d
jne 0x14005778b
cmp qword [rsp + 0x150], 0
je 0x1400575e5
cmp eax, 0x8000
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov ebx, r11d
jb 0x1400572f9
test eax, 0x1ff
jne 0x1400572ef
test r14b, 0x7c
jne 0x1400575e5
cmp esi, 4
jle 0x14005752a
movsxd rax, esi
lea rdx, [rdi + rax*2 - 0xa]
lea rcx, str..iso
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400575e0
mov ebx, dword [rbp + 2]
shl rbx, 9
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.14005c450
cmp rbx, rax
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov r11d, dword [rsp + 0x64]
mov ebx, 0
jne 0x140057317
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, 0x200
lea rdx, [rdi + 0x400]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x64]
je 0x140057317
cmp dword [rsp + 0x60], 0x200
jne 0x140057317
cmp byte [rdi + 0x400], 0xeb
jne 0x140057317
mov eax, 0xaa55
cmp ax, word [rdi + 0x5fe]
jne 0x140057317
jmp 0x1400575e5
mov r11d, dword [rsp + 0x64]
mov eax, dword [rbp + 0xa]
movabs rcx, 0x2b6109100
add rax, rcx
imul rax, rax, 0x989680
mov qword [rsp + 0x158], rax
xor ebx, ebx
mov word [rsp + 0xe8], bx
xor eax, eax
mov qword [rsp + 0xea], rax
mov dword [rsp + 0xf2], eax
mov word [rsp + 0xf6], ax
mov r8b, 1
mov byte [rsp + 0x1e0], r8b
mov rsi, qword [rsp + 0x80]
test rsi, rsi
jne 0x140057a8a
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
inc dword [rsp + 0xb0]
mov ecx, dword [rsp + 0x98]
cmp ecx, 0xffffffff
jne 0x1400576a0
mov eax, dword [rbp + 2]
cmp qword [rsp + 0xd8], rax
jne 0x1400576c0
cmp qword [rsp + 0xf8], r12
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x64]
je 0x140057317
jmp 0x1400576c0
test ecx, ecx
jle 0x1400576c0
mov eax, dword [rbp + 2]
cmp qword [rsp + 0x78], rax
jne 0x1400576c0
cmp qword [rsp + 0xf8], r12
cmove ecx, ebx
mov dword [rsp + 0x98], ecx
movzx eax, word [rsp + 0xf4]
movzx ecx, word [rsp + 0xf2]
movzx edx, word [rsp + 0xf0]
movzx r9d, word [rsp + 0xee]
movzx r10d, word [rsp + 0xea]
movzx r11d, word [rsp + 0xe8]
movzx r8d, r14b
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], r12
mov eax, dword [rbp + 2]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea rdx, str.0x_02X___s__0x_lX__I64u__u__02u__02u__02u__02u__02u_r_n
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd rcx, eax
lea rbx, [rbx + rcx*2]
mov qword [rsp + 0xd0], rbx
mov rdx, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x64]
xor ebx, ebx
jmp 0x140057317
mov ecx, ebx
mov qword [rsp + 0x138], rcx
mov r9w, bx
mov dword [rsp + 0x68], r9d
mov r8d, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x64]
jmp 0x1400572a3
mov ebx, dword [rbp + 2]
shl rbx, 9
test r14b, 1
mov eax, 0x200
mov r8d, 0x1fe
cmovne r8d, eax
test r12, r12
jg 0x1400577d9
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x1400577c5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
xor eax, eax
jmp 0x140057ee6
mov r15, qword [rsp + 0x120]
cmp r15, r12
cmovg r15, r12
sub r12, r15
movabs rax, 0xffffffde0
cmp r12, rax
jb 0x14005782b
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057815
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
movsxd rcx, r8d
mov rax, r15
cqo
idiv rcx
mov ecx, eax
shl ecx, 9
movsxd rcx, ecx
add rbx, rcx
imul eax, r8d
cdqe
sub r15, rax
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.14005c450
cmp rbx, rax
je 0x14005788e
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057878
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
lea edx, [r12 + r15]
lea ebx, [rdx + 0x1ff]
and ebx, 0xfffffe00
add edx, 0x20f
and edx, 0xfffffe00
add edx, 0x200
mov rcx, qword [rsp + 0x1c8]
call fcn.1400632e0
mov rsi, rax
test rax, rax
jne 0x1400578f6
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x1400578e0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
mov rcx, qword [rsp + 0x1c8]
mov rdi, qword [rcx]
mov edx, 0x200
add rdi, rdx
and rdi, 0xfffffffffffffe00
lea rbp, [rdi + 0x200]
xor eax, eax
mov dword [rbp], eax
test r14b, 0x3d
je 0x14005798f
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, rbp
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005795e
cmp dword [rsp + 0x60], ebx
jb 0x14005795e
mov rcx, qword [rsp + 0x1c8]
sub ebp, dword [rcx]
add ebp, r15d
mov dword [rcx + 0xc], ebp
jmp 0x140057a3c
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057979
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
test ebx, ebx
jle 0x140057a3c
nop word [rax + rax]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, edx
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x200
cmp dword [rsp + 0x60], eax
jne 0x140057a0b
mov eax, 0x1fe
sub eax, r15d
mov dword [rsp + 0x60], eax
mov r8d, eax
movsxd rdx, r15d
add rdx, rdi
mov rcx, rsi
call fcn.14010cd30
mov r11d, dword [rsp + 0x60]
add rsi, r11
xor eax, eax
mov r15d, eax
sub ebx, 0x1fe
test ebx, ebx
mov edx, 0x200
jg 0x1400579a0
mov rcx, qword [rsp + 0x1c8]
jmp 0x140057a3c
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057a26
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
jmp 0x140057ee6
mov dword [rcx + 8], r12d
movsxd rax, dword [rcx + 0xc]
add rax, qword [rcx]
xor ecx, ecx
mov qword [rax + r12], rcx
mov qword [rax + r12 + 8], rcx
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057a6d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
xor eax, eax
jmp 0x140057ee6
movzx r8d, byte [rsp + 0x1e0]
cmp byte [rsp + 0x160], 0
je 0x140057ae3
mov eax, dword [rsp + 0xb0]
test eax, eax
jle 0x140057ae3
mov rbx, qword [rsp + 0xd0]
xor r14d, r14d
sub rbx, r14
add rbx, 2
sar rbx, 1
test r14, r14
je 0x140057b6f
movsxd r8, ebx
add r8, r8
mov rdx, r14
mov rcx, qword [rsp + 0x1c8]
mov rcx, qword [rcx]
call fcn.14010cd30
mov r8b, byte [rsp + 0x1e0]
jmp 0x140057b6f
mov eax, dword [rsp + 0x98]
test eax, eax
jle 0x140057b6c
cmp qword [rsp + 0x118], 0
jbe 0x140057b67
test r11d, r11d
jne 0x140057b62
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, str._udext.norm_
mov r8d, 0x2ff00
lea rdx, str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8b, byte [rsp + 0x1e0]
xor r14d, r14d
jmp 0x140057b6f
xor r14d, r14d
jmp 0x140057b6f
xor r14d, r14d
jmp 0x140057b6f
xor r14d, r14d
test rsi, rsi
je 0x140057e72
test r8b, r8b
sete cl
movzx edx, byte [rsp + 0x1d8]
test dl, cl
je 0x140057bb9
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057ba5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
xor eax, eax
jmp 0x140057ee6
test r8b, r8b
mov rsi, qword [rsp + 0x108]
cmove rsi, r15
test dl, dl
je 0x140057c02
movzx ecx, byte [rsi]
add ecx, 2
mov eax, r15d
sub eax, esi
sub eax, ecx
inc eax
movsxd rbx, ecx
movsxd r8, eax
lea rdx, [rbx + rsi]
mov rcx, rsi
call fcn.14010cd30
mov rcx, r15
sub rcx, rbx
mov r8, rbx
xor edx, edx
call fcn.14010c6c0
jmp 0x140057d25
mov rax, qword [rsp + 0x130]
shr rax, 9
mov dword [rsi + 2], eax
mov eax, dword [rsp + 0x110]
mov dword [rsi + 6], eax
test byte [rsi + 1], 0xbc
jne 0x140057c28
mov al, byte [rsp + 0x6c]
mov byte [rsi + 1], al
movabs rcx, 0x100000000
mov rax, qword [rsp + 0x110]
cmp rax, rcx
jb 0x140057c4b
or byte [rsi + 1], 0x80
mov rax, qword [rsp + 0x110]
test byte [rsi + 1], 0x80
je 0x140057c5e
add rax, 0x1ff
shr rax, 9
mov dword [rsi + 6], eax
lea r15, [rsi + 0xc]
test r8b, r8b
jne 0x140057d25
mov dword [rsp + 0x1e0], r14d
xor eax, eax
mov dword [rsp + 0x1e4], eax
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x1e0]
shr rdx, 0x17
movabs rax, 0x2b6109100
sub rdx, rax
mov dword [rsi + 0xa], edx
movzx ecx, word [rsp + 0x68]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, qword [rsp + 0x100]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
test eax, eax
jle 0x140057cf0
cmp byte [rbx + rdi - 1], 0
jne 0x140057cf0
dec ebx
mov eax, 0xf1
cmp ebx, eax
cmovg ebx, eax
movsxd rax, ebx
mov byte [rax + rdi], 0
lea eax, [rbx + 1]
movsxd r8, eax
lea rcx, [rsi + 0xe]
mov rdx, rdi
call fcn.14010cd30
add bl, 0xd
movzx eax, bl
mov byte [rsi], al
lea r15, [rax + rsi + 3]
mov byte [r15 - 1], 0
mov r9, qword [rsp + 0x148]
sub esi, r9d
sub r15d, r9d
mov eax, 0x80808081
imul esi
lea r8d, [rsi + rdx]
sar r8d, 8
mov ecx, r8d
shr ecx, 0x1f
add r8d, ecx
mov eax, 0x80808081
imul r15d
add edx, r15d
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [rsp + 0xe0]
cmp edx, eax
jl 0x140057d9f
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057d86
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
mov rax, 0xffffffff80070057
jmp 0x140057ee6
cmp r8d, edx
jg 0x140057e72
movsxd rdi, r8d
mov rcx, qword [rsp + 0xb8]
add rdi, rcx
shl rdi, 9
mov eax, r8d
imul eax, eax, 0x1fe
movsxd rsi, eax
add rsi, r9
sub r15d, eax
sub edx, r8d
lea ebp, [rdx + 1]
mov r12, qword [rsp + 0xc8]
nop word [rax + rax]
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call fcn.14005c450
mov ebx, r15d
mov eax, 0x1fe
cmp r15d, eax
cmovg ebx, eax
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8d, [rax + 2]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r8, ebx
mov rdx, rsi
mov rcx, r12
call fcn.14010cd30
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call fcn.14005c450
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov ebx, 0x200
mov r8d, ebx
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x1fe
sub r15d, eax
add rsi, rax
add rdi, rbx
sub rbp, 1
jne 0x140057de0
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057e8d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
xor eax, eax
jmp 0x140057ee6
mov edx, 0x64
mov rbx, qword [rsp + 0x1c8]
mov rcx, rbx
call fcn.1400635c0
mov r11, qword [rbx]
mov word [r11], r14w
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
cmp r13, 0xffffffffffffffff
je 0x140057ed5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.14005b520
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret