Function at 0x1400133f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x1402aa8c0]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r13, rcx
mov r8, rdx
lea rdx, str._sBuy.dat
lea rcx, [rbp + 0x60]
call fcn.14000a640
lea rdx, [0x140261acc]
lea rcx, [rbp + 0x60]
call fcn.1401d1788
mov r12, rax
test rax, rax
je 0x140013a7d
mov qword [rsp + 0x3d0], rbx
lea rcx, [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x398], rsi
mov qword [rsp + 0x390], rdi
mov r9, rax
mov qword [rsp + 0x388], r14
mov qword [rsp + 0x380], r15
lea edx, [rbx + 4]
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 1]
call fcn.1401d1c20
mov rcx, qword [r13 + 0x1e8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rax, dword [rsp + 0x40]
lea rdi, [rbx - 1]
test eax, eax
jle 0x140013612
mov rcx, rax
mov eax, VarBstrFromDisp
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14002970c
mov r15, rax
test rax, rax
je 0x140013612
movsxd rcx, dword [rsp + 0x40]
xor edx, edx
imul r8, rcx, 0x70
mov rcx, rax
call fcn.1401cafc0
movsxd r8, dword [rsp + 0x40]
lea edx, [rbx + 0x70]
mov r9, r12
mov rcx, r15
call fcn.1401d1c20
mov edi, ebx
cmp dword [rsp + 0x40], ebx
jle 0x140013603
lea rsi, [r13 + 0x1a8]
lea r14, [r15 + 0x6c]
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x38], rbx
lea r9, [0x140262214]
mov dword [rsp + 0x30], ebx
mov r8d, edi
mov dword [rsp + 0x28], ebx
mov edx, 1
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140036950
lea ebx, [rdi + 1]
mov r8d, ebx
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 1
mov edx, edi
mov rcx, rsi
call fcn.140036c6c
movsxd rax, edi
lea r9, [r15 + 2]
imul rcx, rax, 0x70
mov r8d, 2
mov edx, edi
add r9, rcx
mov rcx, rsi
call fcn.140036c6c
mov r8d, dword [r14 - 4]
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 3
mov edx, edi
mov rcx, rsi
call fcn.140036c6c
mov r8d, dword [r14]
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 4
mov edx, edi
mov rcx, rsi
call fcn.140036c6c
movzx r8d, byte [r14 - 0x6c]
mov edx, edi
mov rcx, rsi
call fcn.140045dfc
cmp ebx, dword [rsp + 0x40]
lea r14, [r14 + 0x70]
mov edi, ebx
mov ebx, 0
jl 0x140013520
mov rcx, r15
call fcn.140029704
mov rdi, 0xffffffffffffffff
mov edx, 4
mov dword [rsp + 0x40], ebx
mov r9, r12
lea rcx, [rsp + 0x40]
lea r8d, [rdx - 3]
call fcn.1401d1c20
mov rcx, qword [r13 + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rax, dword [rsp + 0x40]
test eax, eax
jle 0x140013798
mov rcx, rax
mov eax, VarBstrFromDisp
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14002970c
mov r15, rax
test rax, rax
je 0x140013798
movsxd rcx, dword [rsp + 0x40]
xor edx, edx
imul r8, rcx, 0x70
mov rcx, rax
call fcn.1401cafc0
movsxd r8, dword [rsp + 0x40]
mov r9, r12
mov edx, VarBstrFromDisp
mov rcx, r15
call fcn.1401d1c20
cmp dword [rsp + 0x40], 0
jle 0x140013790
lea rsi, [r13 + 0x290]
lea r14, [r15 + 0x6c]
xor eax, eax
lea r9, [0x140262214]
mov qword [rsp + 0x38], rax
mov r8d, ebx
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov dword [rsp + 0x28], eax
lea edx, [rax + 1]
mov dword [rsp + 0x20], eax
call fcn.140036950
lea edi, [rbx + 1]
mov r8d, edi
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 1
mov edx, ebx
mov rcx, rsi
call fcn.140036c6c
movsxd rax, ebx
mov r8d, 2
imul r9, rax, 0x70
mov edx, ebx
mov rcx, rsi
add r9, 2
add r9, r15
call fcn.140036c6c
mov r8d, dword [r14 - 4]
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 3
mov edx, ebx
mov rcx, rsi
call fcn.140036c6c
mov r8d, dword [r14]
lea rdx, [0x140264a88]
lea rcx, [rbp - 0x10]
call fcn.14000a640
lea r9, [rbp - 0x10]
mov r8d, 4
mov edx, ebx
mov rcx, rsi
call fcn.140036c6c
movzx r8d, byte [r14 - 0x6c]
mov edx, ebx
mov rcx, rsi
call fcn.140045dfc
lea r14, [r14 + 0x70]
mov ebx, edi
cmp edi, dword [rsp + 0x40]
jl 0x1400136b2
mov rcx, r15
call fcn.140029704
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, LoadRegTypeLib
call fcn.1401cafc0
mov r9, r12
lea rcx, [rsp + 0x50]
mov edx, LoadRegTypeLib
mov r8d, 1
call fcn.1401d1c20
mov eax, dword [rsp + 0x50]
mov rcx, r12
mov dword [r13 + 0x130], eax
movzx eax, byte [rsp + 0x54]
mov dword [r13 + 0x158], eax
movzx eax, byte [rsp + 0x55]
mov dword [r13 + 0x15c], eax
movzx eax, byte [rsp + 0x56]
mov dword [r13 + 0x160], eax
movzx eax, byte [rsp + 0x57]
mov dword [r13 + 0x164], eax
movzx eax, byte [rsp + 0x58]
mov dword [r13 + 0x168], eax
movzx eax, byte [rsp + 0x59]
mov dword [r13 + 0x16c], eax
movzx eax, byte [rsp + 0x5a]
mov dword [r13 + 0x17c], eax
movzx eax, byte [rsp + 0x5b]
mov dword [r13 + 0x180], eax
mov eax, dword [rsp + 0x5c]
mov dword [r13 + 0x134], eax
movzx eax, byte [rsp + 0x60]
mov dword [r13 + 0x184], eax
movzx eax, byte [rsp + 0x61]
mov dword [r13 + 0x188], eax
movzx eax, byte [rsp + 0x62]
mov dword [r13 + 0x18c], eax
movzx eax, byte [rsp + 0x63]
mov dword [r13 + 0x190], eax
mov eax, dword [rsp + 0x64]
mov dword [r13 + 0x138], eax
mov eax, dword [rsp + 0x68]
mov dword [r13 + 0x13c], eax
mov eax, dword [rsp + 0x6c]
mov dword [r13 + 0x140], eax
mov eax, dword [rsp + 0x70]
mov dword [r13 + 0x144], eax
movzx eax, byte [rbp - 0x7f]
mov dword [r13 + 0x194], eax
movzx eax, byte [rbp - 0x7e]
mov dword [r13 + 0x198], eax
movzx eax, byte [rbp - 0x7d]
mov dword [r13 + 0x19c], eax
movzx eax, byte [rbp - 0x7c]
mov dword [r13 + 0x14c], eax
movzx eax, byte [rbp - 0x7b]
mov dword [r13 + 0x150], eax
movzx eax, byte [rbp - 0x7a]
mov dword [r13 + 0x154], eax
movzx eax, byte [rsp + 0x74]
mov dword [r13 + 0x1a0], eax
mov eax, dword [rsp + 0x78]
mov dword [r13 + 0x148], eax
mov eax, dword [rsp + 0x7c]
mov dword [r13 + 0x378], eax
movzx eax, byte [rbp - 0x80]
mov dword [r13 + 0x37c], eax
movzx eax, byte [rbp - 0x79]
mov dword [r13 + 0x170], eax
movzx eax, byte [rbp - 0x78]
mov dword [r13 + 0x174], eax
movzx eax, byte [rbp - 0x77]
mov dword [r13 + 0x178], eax
call fcn.1401d192c
xor edx, edx
mov rcx, r13
call fcn.1400301cc
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x837
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x184]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x838
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x188]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x839
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x18c]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x83a
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x190]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x83b
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x1a0]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x83d
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x194]
mov rcx, rax
call fcn.140032b28
mov edx, 1
mov rcx, r13
call fcn.1400301cc
mov edx, 0x83e
mov rcx, r13
call fcn.140032c74
mov edx, dword [r13 + 0x198]
mov rcx, rax
call fcn.140032b28
mov r15, qword [rsp + 0x380]
mov r14, qword [rsp + 0x388]
mov rdi, qword [rsp + 0x390]
mov rsi, qword [rsp + 0x398]
mov rbx, qword [rsp + 0x3d0]
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1401c8d10
add rsp, 0x3a0
pop r13
pop r12
pop rbp
ret