Function at 0x180029cf0
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, 0xa8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x180094030]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x180029d4b
cmp dword [rsp + 0x34], 0
ja 0x180029d71
mov rcx, qword [rsp + 0xb0]
call fcn.18001c230
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
jmp 0x18002a027
mov dword [rsp + 0x38], 0
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.18001b0e0
lea rcx, [rsp + 0x80]
call fcn.180027b30
nop
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.180025500
lea rcx, [rsp + 0x80]
call fcn.180025f50
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
cmp eax, 0x45af2fd9
jne 0x180029ded
lea r8, str.Local2169489920130763894821930711762758366022363638881323552240x
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0x70], rax
jmp 0x180029e15
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x180093a10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x180093a10]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x48], 0
jne 0x180029e4f
mov rcx, qword [rsp + 0xb0]
call fcn.18001c230
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.18001c650
mov rax, qword [rsp + 0xb0]
jmp 0x18002a027
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x180029fb0
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180093a10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff164
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x180093a10]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x78], 0
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180093a10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff15b
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x180093a10]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180029ef7
cmp dword [rsp + 0x78], 0
jne 0x180029f97
cmp qword [0x18011c858], 0
je 0x180029f0d
call qword [0x18011c858]
mov dword [rsp + 0x3c], eax
jmp 0x180029f15
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
lea rax, [0x180079b60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x180029f86
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180029f86
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x180093a10]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x180093a10]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x38], 0
jne 0x180029f95
mov dword [rsp + 0x38], 0x1f
jmp 0x180029fb0
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x180029e58
cmp dword [rsp + 0x38], 0
je 0x180029fe6
mov rcx, qword [rsp + 0xb0]
call fcn.18001c230
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.18001c650
mov rax, qword [rsp + 0xb0]
jmp 0x18002a027
mov eax, dword [rsp + 0x34]
mov r9d, dword [rsp + 0xc0]
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call fcn.180027ba0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x80]
call fcn.18001c650
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18004a8d0
add rsp, 0xa8
ret