Function at 0x140037df0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r8
mov r14, rdx
xor r13d, r13d
mov byte [rbp + 0x58], r13b
cmp qword [rcx + 0x58], 8
jb 0x140037e36
mov rax, qword [rcx + 0x40]
jmp 0x140037e3a
lea rax, [rcx + 0x40]
mov qword [rcx + 0x50], r13
mov word [rax], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
inc rax
or r12, 0xffffffffffffffff
cmp rax, 1
jbe 0x140037fba
lea rdx, [rbp - 0x3c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbp - 0x40], eax
mov rcx, rdi
test eax, eax
jne 0x140037ec0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140037fba
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x3c]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rsi, rax
inc rax
cmp rax, 1
ja 0x140037ef0
mov rcx, rdi
jmp 0x140037eaf
mov eax, dword [rbp - 0x40]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
nop dword [rax + rax]
test rax, rax
jne 0x140037f2c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140037eeb
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x40]
mov rdx, rax
mov rcx, r15
call fcn.140043358
mov bl, al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test bl, bl
je 0x140037fba
mov byte [rbp + 0x58], 1
mov rbx, qword [rbp - 0x18]
cmp rbx, qword [rbp - 0x10]
je 0x140037fab
mov qword [rbp - 0x30], r15
mov rax, r12
inc rax
cmp word [r15 + rax*2], r13w
jne 0x140037f78
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x40], xmm0
mov r9b, 2
lea r8, [rbp - 0x40]
mov rdx, rbx
mov rcx, r14
call fcn.14003530c
add rbx, 0x10
cmp rbx, qword [rbp - 0x10]
jne 0x140037f75
mov rcx, r15
call qword [sym.imp.tdh.dll_TdhLoadManifestFromBinary]
nop dword [rax + rax]
mov r14, r12
inc r14
cmp word [r15 + r14*2], r13w
jne 0x140037fbd
inc r14d
mov esi, r13d
mov rdi, r13
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x140038006
mov esi, InitCommonControls
jmp 0x140038173
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov r8, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov edi, 0x105
mov dword [rbp - 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
xor r14d, r14d
test rax, rax
jne 0x140038077
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140038102
mov rdx, qword [0x140123e10]
test rdx, rdx
je 0x1400380cf
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rcx, rbx
call fcn.14006095c
mov ebx, eax
test eax, eax
je 0x1400380d4
cmp dword [0x140123e50], r14d
jne 0x1400380d4
call fcn.14005f6c0
test al, al
je 0x1400380d4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov rdx, qword [0x140123e10]
mov rcx, qword [rbp - 0x30]
call fcn.14006095c
mov ebx, eax
jmp 0x1400380d4
mov ebx, 0x490
mov byte [rdi + 0x104], r14b
test ebx, ebx
je 0x140038112
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdi, r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x140038176
mov r14, r12
inc r14
cmp byte [rdi + r14], sil
jne 0x140038115
inc r14d
mov ebx, r14d
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140037ffc
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
xor r14d, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400381ad
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rdi, rdi
je 0x1400381d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp - 0x30], r13
mov rdi, qword [rbp + 0x40]
test r13, r13
je 0x1400381f6
mov r8, r13
mov rdx, qword [rbp + 0x48]
mov rcx, rdi
call fcn.14003827c
test al, al
je 0x1400381f6
mov bl, 1
jmp 0x1400381fd
mov bl, byte [rbp + 0x58]
test bl, bl
je 0x140038222
cmp word [r15], r14w
jne 0x140038208
mov r12, r14
jmp 0x140038212
inc r12
cmp word [r15 + r12*2], r14w
jne 0x140038208
mov r8, r12
mov rdx, r15
lea rcx, [rdi + 0x40]
call fcn.140004eb0
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140038258
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov al, bl
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret