Function at 0x18002d4a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x3c], eax
lea rax, [0x18007de14]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18002d559
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18002d559
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x3c], 0xffffffff
je 0x18002d567
cmp dword [rsp + 0x3c], 0
ja 0x18002d58d
mov rcx, qword [rsp + 0xc0]
call fcn.18001ec60
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc0]
jmp 0x18002d975
mov dword [rsp + 0x40], 0
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff14f
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.1800368b0
lea rcx, [rsp + 0x90]
call fcn.18002b920
nop
mov eax, dword [rsp + 0x3c]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.180028a70
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
add eax, 0xa2adcc6
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0x90]
call fcn.180030fd0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18002d66e
mov rcx, qword [rsp + 0xc0]
call fcn.18001ec60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x90]
call fcn.18001f080
mov rax, qword [rsp + 0xc0]
jmp 0x18002d975
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x18002d84d
mov dword [rsp + 0x48], 6
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x48]
movsxd rcx, ecx
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x88], 0
lea rax, [0x18007de14]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18002d716
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18002d716
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002d751
cmp dword [rsp + 0x88], 0
jne 0x18002d831
cmp qword [0x1800e6ab0], 0
je 0x18002d767
call qword [0x1800e6ab0]
mov dword [rsp + 0x44], eax
jmp 0x18002d76f
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, 1
mov word [rsp + 0x38], ax
movsx rax, word [rsp + 0x38]
lea rcx, [0x18009aa10]
cmp dword [rcx + rax*4], 1
jne 0x18002d7b6
movsx rax, word [rsp + 0x38]
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x38]
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
cmp dword [rsp + 0x40], 0
jne 0x18002d7c5
mov dword [rsp + 0x40], 0x1f
mov eax, 1
mov word [rsp + 0x34], ax
movsx rax, word [rsp + 0x34]
lea rcx, [0x18009aa10]
cmp dword [rcx + rax*4], 1
jne 0x18002d804
movsx rax, word [rsp + 0x34]
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x34]
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
jmp 0x18002d84d
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x18002d677
cmp dword [rsp + 0x40], 0
je 0x18002d886
mov rcx, qword [rsp + 0xc0]
call fcn.18001ec60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x90]
call fcn.18001f080
mov rax, qword [rsp + 0xc0]
jmp 0x18002d975
mov eax, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0xd0]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
call fcn.18002b940
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x90]
call fcn.18001f080
mov rax, qword [rsp + 0xc0]
jmp 0x18002d975
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0xb8
ret