Function at 0x1800a33e0
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcf0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0xd30], rbx
mov rax, qword [0x1801dc960]
xor rax, rsp
mov qword [rsp + 0xce0], rax
mov r13, r9
mov rax, r8
mov qword [rsp + 0x78], rax
mov rbx, rdx
mov qword [rsp + 0x80], rdx
mov ebp, ecx
mov rdi, qword [rsp + 0xd50]
mov qword [rsp + 0xc8], rdi
test rdx, rdx
jne 0x1800a346d
cmp qword [rdi + 0x20], 0x10
jb 0x1800a3456
mov rcx, qword [rdi + 8]
call fcn.1800f4b9c
mov qword [rdi + 0x20], 0xf
xor esi, esi
mov qword [rdi + 0x18], rsi
mov byte [rdi + 8], sil
jmp 0x1800a3996
test rax, rax
jne 0x1800a3499
cmp qword [rdi + 0x20], 0x10
jb 0x1800a3482
mov rcx, qword [rdi + 8]
call fcn.1800f4b9c
mov qword [rdi + 0x20], 0xf
xor esi, esi
mov qword [rdi + 0x18], rsi
mov byte [rdi + 8], sil
jmp 0x1800a3996
cmp dword [0x1802222e0], 0
jne 0x1800a34c9
cmp qword [rdi + 0x20], 0x10
jb 0x1800a34b2
mov rcx, qword [rdi + 8]
call fcn.1800f4b9c
mov qword [rdi + 0x20], 0xf
xor esi, esi
mov qword [rdi + 0x18], rsi
mov byte [rdi + 8], sil
jmp 0x1800a3996
mov byte [rsp + 0x510], 0
xor edx, edx
mov r8d, 0x7cf
lea rcx, [rsp + 0x511]
call fcn.1800f4fb0
mov rcx, rbx
call fcn.18009c670
xor esi, esi
test eax, eax
je 0x1800a3976
mov r14d, esi
mov byte [rsp + 0x400], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x401]
call fcn.1800f4fb0
mov byte [rsp + 0x2f0], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x2f1]
call fcn.1800f4fb0
mov byte [rsp + 0xd0], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0xd1]
call fcn.1800f4fb0
mov byte [rsp + 0x1e0], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x1e1]
call fcn.1800f4fb0
lea rcx, [0x1801dc900]
mov rax, qword [0x1801dc900]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
or r15d, 0xffffffff
lea r12d, [rsi + 3]
cmp ebp, 2
jne 0x1800a3659
mov r13, qword [rsp + 0x78]
movzx ecx, byte [r13]
call fcn.180068530
test eax, eax
je 0x1800a375a
lea r8d, [rsi + 1]
movzx edx, byte [r13]
lea rcx, [rsp + 0x90]
call fcn.18008d7f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1800a3622
cmp dword [rbx + 0x10], esi
jl 0x1800a3613
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1800a3613
call fcn.180002880
mov r13, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1800a3608
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [r13 + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x1800a3622
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.180003320
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800a364f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x70]
jmp 0x1800a375a
mov rbx, qword [rsp + 0x70]
jmp 0x1800a375a
cmp ebp, 1
jne 0x1800a36cd
mov r14d, esi
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsp + 0x88]
call fcn.1800f9d24
lea rcx, [rsp + 0x88]
call fcn.1800f9cd8
mov r9, rax
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.1800fb704
mov r11, rsi
nop dword [rax + rax]
movzx eax, byte [rsp + r11 + 0xd0]
mov byte [rsp + r11 + 0x1e0], al
inc r11
test al, al
jne 0x1800a36b0
jmp 0x1800a37a1
cmp ebp, 4
jne 0x1800a375a
test r13, r13
je 0x1800a36f3
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1800a36f6
mov r14d, esi
jmp 0x1800a36f6
mov r14d, esi
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rsp + 0x98]
call fcn.1800f9d24
lea rcx, [rsp + 0x98]
call fcn.1800f9cd8
mov r9, rax
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.1800fb704
mov r11, rsi
nop dword [rax]
movzx eax, byte [rsp + r11 + 0xd0]
mov byte [rsp + r11 + 0x1e0], al
inc r11
test al, al
jne 0x1800a3740
jmp 0x1800a37a1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1800a37a1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x2f0]
lea rdx, [rsp + 0x400]
mov r13, qword [rsp + 0x80]
mov rcx, r13
call fcn.180085e80
mov r8d, 4
cmp ebp, 3
je 0x1800a3809
cmp ebp, 2
jne 0x1800a37eb
mov r12d, ebp
jmp 0x1800a3809
cmp ebp, 5
jne 0x1800a37f5
mov r12d, ebp
jmp 0x1800a3809
cmp ebp, 1
jne 0x1800a37ff
mov r12d, ebp
jmp 0x1800a3809
mov r12d, esi
cmp ebp, r8d
cmove r12d, r8d
lea rdx, [0x180161b84]
mov rcx, r13
call fcn.18010c858
test eax, eax
jne 0x1800a38a9
cmp qword [rdi + 0x20], 0x10
jb 0x1800a382d
mov rdx, qword [rdi + 8]
jmp 0x1800a3831
lea rdx, [rdi + 8]
mov rax, qword [rsp + 0x78]
add rax, 4
lea rcx, [r13 + 4]
lea r8, [rsp + 0x1e0]
mov qword [rsp + 0x60], r8
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x58], r8
lea r8, [rsp + 0x2f0]
mov qword [rsp + 0x50], r8
lea r8, [rsp + 0x400]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, r12d
lea r8, str.Mode_d_r_nSrcP_s_r_nDstP_s_rusbSerialNo_s_r_nFSize_d_r_nFBSign_s_r_nFASign_s_r_nFCode_s_r_nCreateTime_s_r_nMifTime_s
mov edx, 0x7cf
lea rcx, [rsp + 0x510]
call fcn.1800fc83c
jmp 0x1800a3928
cmp qword [rdi + 0x20], 0x10
jb 0x1800a38b6
mov rax, qword [rdi + 8]
jmp 0x1800a38ba
lea rax, [rdi + 8]
lea rcx, [rsp + 0x1e0]
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x2f0]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x400]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, r12d
lea r8, str.Mode_d_r_nSrcP_s_r_nDstP_s_rusbSerialNo_s_r_nFSize_d_r_nFBSign_s_r_nFASign_s_r_nFCode_s_r_nCreateTime_s_r_nMifTime_s
mov edx, 0x7cf
lea rcx, [rsp + 0x510]
call fcn.1800fc83c
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x510]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0xe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18008e860
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x1800a3976
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
cmp qword [rdi + 0x20], 0x10
jb 0x1800a3986
mov rcx, qword [rdi + 8]
call fcn.1800f4b9c
mov qword [rdi + 0x20], 0xf
mov qword [rdi + 0x18], rsi
mov byte [rdi + 8], 0
mov rcx, qword [rsp + 0xce0]
xor rcx, rsp
call fcn.1800f4f80
mov rbx, qword [rsp + 0xd30]
add rsp, 0xcf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret