Function at 0x1400a0554
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa20]
sub rsp, 0xb20
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rbp + 0xa10], rax
mov r15d, r8d
mov rdi, rdx
mov rsi, rcx
xor r13d, r13d
cmp dword [rcx + 0x2c], r13d
jne 0x1400a07e8
test rdx, rdx
je 0x1400a0ae6
lea r14, [rcx + 0xa0]
mov rcx, r14
call fcn.1400391ec
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000c260
nop
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], r13d
jl 0x1400a0653
lea rdx, [0x14023e1f8]
mov rcx, rbx
call fcn.1401ab848
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x1400a05f7
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400a0733
cmp dword [rbx - 0x10], r13d
jl 0x1400a0653
lea rdx, str._.___
mov rcx, rbx
call fcn.1401ab848
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x1400a0625
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400a0733
cmp dword [rbx - 0x10], r13d
jl 0x1400a0653
lea rdx, [0x14023e27c]
mov rcx, rbx
call fcn.1401ab848
test rax, rax
je 0x1400a0653
mov rbx, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400a0733
mov r12d, 0x104
mov r8d, r12d
lea rdx, [rbp + 0x800]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400a072e
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea ebx, [r12 - 4]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x600]
mov r8d, 3
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x800]
call fcn.1401bbfc4
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x200]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1401bbfc4
lea rax, [rbp + 0x200]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x400]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x600]
lea r8, [rbp - 0x18]
mov edx, r12d
lea rcx, [rbp - 0x10]
call fcn.1401bbe40
lea rcx, [rbp - 0x10]
call fcn.1401c195c
mov r8d, eax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140004750
mov rbx, qword [rsp + 0x50]
test r15d, r15d
je 0x1400a0788
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a0783
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, r15d
ja 0x1400a07c2
mov rbx, qword [rsp + 0x50]
mov edi, dword [rsi + 0x38]
call fcn.140014ee0
mov rcx, qword [rax + 0x10]
neg edi
sbb eax, eax
and eax, 0x1000
add eax, 0x2010
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [r14], rax
test rax, rax
jne 0x1400a0814
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a07e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002f13a.0]
xor eax, eax
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.14000a140
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x38]
mov ebx, 0x20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x1400a083a
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [r14], r13
jmp 0x1400a07c2
mov dword [rsi + 0x1c], 1
lea rcx, [rsi + 0xb8]
lea rdx, [rsp + 0x50]
call fcn.14000fc74
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1400a0868
mov dword [rsi + 0x28], 1
movzx eax, word [rbp - 0x26]
mov dword [rsi + 0xc], eax
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x1400a0a55
cmp qword [r14], r13
je 0x1400a0a55
lea rcx, [rsp + 0x58]
call fcn.14000b0d8
nop
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000affc
lea r8, [rbp - 0x58]
mov edx, ebx
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1400a0a4b
mov rdx, qword [r14]
test rdx, rdx
je 0x1400a0a4b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbx, rax
test rax, rax
je 0x1400a0a4b
mov edi, dword [rbp - 0x54]
mov dword [rbp - 0x18], edi
mov r12d, dword [rbp - 0x50]
mov r8d, r12d
mov edx, edi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x1400a0917
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1400a0a4b
lea rcx, [rsp + 0x78]
call fcn.14000b0d8
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000affc
mov rdx, r15
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1400a096c
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1400a0a40
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_BitBlt]
mov r15d, r13d
test edi, edi
jle 0x1400a0a14
mov eax, dword [rbp - 0x18]
mov edi, r13d
test r12d, r12d
jle 0x1400a0a0c
mov r8d, edi
mov edx, r15d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_GetPixel]
mov r13d, eax
cmp word [rbp - 0x46], 0x18
jne 0x1400a09dd
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1400a09dd
mov ecx, eax
call fcn.1400a3330
jmp 0x1400a09e7
xor edx, edx
mov ecx, r13d
call fcn.1400a3424
cmp r13d, eax
je 0x1400a09ff
mov r9d, eax
mov r8d, edi
mov edx, r15d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_SetPixel]
inc edi
cmp edi, r12d
jl 0x1400a09b1
mov eax, dword [rbp - 0x18]
xor r13d, r13d
inc r15d
cmp r15d, eax
jl 0x1400a09a9
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rbp - 0x60]
mov qword [r14], rax
lea rcx, [rsp + 0x78]
call fcn.14000bd14
nop
lea rcx, [rsp + 0x58]
call fcn.14000bd14
mov ebx, 0x20
cmp word [rbp - 0x26], bx
jb 0x1400a0a6b
mov edx, dword [rsi + 0x40]
mov rcx, qword [r14]
call fcn.1400a0198
mov rcx, qword [r14]
test rcx, rcx
jne 0x1400a0a78
mov eax, r13d
jmp 0x1400a0a8f
lea r8, [rbp - 0x58]
mov edx, ebx
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1400a0a73
mov eax, dword [rbp - 0x54]
cdq
idiv dword [rsi + 0x68]
mov dword [rsi + 8], eax
lea rbx, [rsi + 0xa8]
mov rcx, rbx
call fcn.1400391ec
mov qword [rbx], r13
lea rbx, [rsi + 0xb0]
mov rcx, rbx
call fcn.1400391ec
mov qword [rbx], r13
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400a0adc
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14002f13a.0]
mov eax, 1
jmp 0x1400a07ea
call fcn.140015a68
int3