Function at 0x43dcc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x110
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov dword [rbp + 0x44], edx
mov qword [rbp + 0x58], r8
mov byte [rbp + 0x77], r9b
xor rax, rax
mov byte [rbp + 0x67], al
mov ax, 0x27
mov word [rbp + 0x54], ax
mov ax, 0x22
mov word [rbp + 0x56], ax
lea rcx, [rbp + 0xc0]
mov edx, 0x20
xor r8, r8
call fcn.00406310
mov eax, 1
mov dword [rbp + 0x70], eax
mov ax, 0x3b
mov word [rbp + 0x6e], ax
mov word [rbp + 0xc0], 0x20
mov word [rbp + 0xc2], 9
mov word [rbp + 0xc4], 0
xor rax, rax
mov dword [rbp + 0x80], eax
mov eax, 1
mov dword [rbp + 0x68], eax
mov eax, 1
mov dword [rbp + 0x7c], eax
xor rax, rax
mov dword [rbp + 0x78], eax
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x38], 0
je 0x43e22d
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x38]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x22
je 0x43dd8f
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x27
jne 0x43dda7
mov rax, qword [rbp + 0x100]
movzx rsi, word [rax]
add qword [rbp + 0x100], 2
jmp 0x43e160
xor rsi, rsi
jmp 0x43e160
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43ddd3
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jbe 0x43ddb1
mov rax, qword [rbp + 0x100]
cmp word [rax], si
je 0x43e17b
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043e9fc]
mov r8d, 4
call fcn.0041dce0
test eax, eax
jne 0x43de1e
mov rax, qword [rbp + 0x100]
movzx rax, word [rax + 8]
mov word [rbp + 0x6e], ax
add qword [rbp + 0x100], 0xa
jmp 0x43e160
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ea06]
mov r8d, 7
call fcn.0041dce0
test eax, eax
jne 0x43df22
add qword [rbp + 0x100], 0xe
mov rbx, qword [rbp + 0x100]
jmp 0x43de73
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jne 0x43de6b
mov rax, qword [rbp + 0x100]
cmp word [rax + 2], si
jne 0x43de8c
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43de8c
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43de51
nop
mov rax, qword [rbp + 0x100]
mov rcx, rbx
neg rcx
lea rax, [rax + rcx]
mov ecx, 2
cqo
idiv rcx
cmp rax, 0x20
jge 0x43dee1
lea rcx, [rbp + 0xc0]
mov r8, rbx
mov rax, qword [rbp + 0x100]
mov rdx, rbx
neg rdx
lea rax, [rax + rdx]
mov r9d, 2
cqo
idiv r9
mov rdx, r8
mov r8d, eax
call fcn.00429d50
mov rax, qword [rbp + 0x100]
neg rbx
lea rax, [rax + rbx]
mov ecx, 2
cqo
idiv rcx
mov word [rbp + rax*2 + 0xc0], 0
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43e160
add qword [rbp + 0x100], 2
jmp 0x43e160
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ea16]
mov r8d, 5
call fcn.0041dce0
test eax, eax
jne 0x43df77
add qword [rbp + 0x100], 0xa
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x100]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov dword [rbp + 0x80], eax
mov eax, dword [rbp + 0x80]
test eax, eax
jle 0x43e124
jmp 0x43e160
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ea22]
mov r8d, 8
call fcn.0041dce0
test eax, eax
jne 0x43dfb7
add qword [rbp + 0x100], 0x10
mov ax, 0x60
mov word [rbp + 0x54], ax
mov ax, 0x27
mov word [rbp + 0x56], ax
mov al, 1
mov byte [rbp + 0x67], al
jmp 0x43e160
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ea34]
mov r8d, 7
call fcn.0041dce0
test eax, eax
jne 0x43dff7
add qword [rbp + 0x100], 0xe
mov ax, 0x60
mov word [rbp + 0x54], ax
mov ax, 0x27
mov word [rbp + 0x56], ax
mov al, 1
mov byte [rbp + 0x67], al
jmp 0x43e160
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ea44]
mov r8d, 7
call fcn.0041dce0
test eax, eax
jne 0x43e124
add qword [rbp + 0x100], 0xe
xor rax, rax
mov dword [rbp + 0x7c], eax
xor r13, r13
jmp 0x43e0f8
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43e053
add qword [rbp + 0x100], 2
add r13d, 1
mov eax, r13d
mov dword [rbp + 0x78], eax
jmp 0x43e115
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x100]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov edi, eax
test edi, edi
jle 0x43e124
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2d
jne 0x43e0a4
mov rax, qword [rbp + 0x100]
lea rcx, [rax + 2]
lea rdx, [rbp + 0x100]
xor r8, r8
call sub.msvcrt.dll_wcstol
test eax, eax
jle 0x43e124
jmp 0x43e0a6
mov eax, edi
test edi, edi
jle 0x43e0d4
cmp eax, 0x20
jge 0x43e0d4
cmp edi, eax
jg 0x43e0d3
add r13d, 1
mov edx, 1
mov ecx, edi
sub ecx, 1
shl edx, cl
mov ecx, dword [rbp + 0x7c]
or ecx, edx
mov dword [rbp + 0x7c], ecx
add edi, 1
cmp edi, eax
jle 0x43e0b3
nop
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2c
jne 0x43e0eb
add qword [rbp + 0x100], 2
jmp 0x43e0f8
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43e115
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43e115
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43e02f
nop
mov eax, dword [rbp + 0x68]
cmp r13d, eax
jle 0x43e160
mov dword [rbp + 0x68], r13d
jmp 0x43e160
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043ea60]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00471010
mov eax, 1
jmp 0x43e9eb
cmp qword [rbp + 0x100], 0
je 0x43e17b
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
jne 0x43ddb9
nop
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43e22d
mov rcx, qword [0x00480d78]
mov edx, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add edx, eax
add edx, edx
call fcn.0046fb80
mov qword [0x00480d78], rax
lea rcx, [0x004a7de0]
mov rdx, qword [0x0043b350]
mov r8d, 1
mov r9d, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add r9d, eax
movsxd r9, r9d
call fcn.0040cad0
xor rdi, rdi
mov eax, dword [rbp + 0x68]
cmp edi, eax
jge 0x43e216
mov rax, qword [0x00480d78]
mov ecx, dword [rbp + 0x44]
add ecx, edi
movsxd rcx, ecx
mov rdx, qword [rbp + 0x48]
movzx rdx, word [rdx + 0x30]
add dx, di
mov word [rax + rcx*2], dx
mov rax, qword [0x004a7de0]
mov ecx, dword [rbp + 0x44]
add ecx, edi
movsxd rcx, ecx
mov qword [rax + rcx*8], 0
add edi, 1
mov eax, dword [rbp + 0x68]
cmp edi, eax
jl 0x43e1d6
nop
mov rax, qword [0x00480d78]
mov ecx, dword [rbp + 0x44]
add ecx, edi
movsxd rcx, ecx
mov word [rax + rcx*2 + 2], 0
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x43e252
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
je 0x43e265
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
je 0x43e265
mov rcx, qword [rbp + 0x58]
xor rdx, rdx
xor r8, r8
call fcn.0046fcf0
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x80]
mov dword [rbp + 0x84], eax
xor rax, rax
mov dword [rbp + 0x88], eax
jmp 0x43e988
call fcn.0043d680
call fcn.0046f700
xor rax, rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x100], rax
xor rax, rax
mov qword [rbp + 0x98], rax
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x80], eax
mov rcx, qword [rbp + 0x58]
call fcn.00429e60
mov dword [rbp + 0x8c], eax
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
jne 0x43e4e0
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43e4e0
mov eax, dword [rbp + 0x8c]
movsxd rax, eax
mov rcx, qword [rbp + 0x58]
movzx rdx, word [rbp + 0x54]
cmp word [rcx + rax*2 - 2], dx
jne 0x43e4e0
mov rax, qword [rbp + 0x58]
add rax, 2
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x8c]
sub eax, 2
mov dword [rbp + 0x8c], eax
movsxd rax, eax
mov rcx, qword [rbp + 0x58]
mov word [rcx + rax*2], 0
mov ecx, dword [rbp + 0x8c]
add ecx, 1
call fcn.0046fa60
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043eaa4]
call sub.msvcrt.dll__wpopen
mov rbx, rax
test rbx, rbx
jne 0x43e38a
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043eab8]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00471010
call sub.kernel32.dll_GetLastError_2
jmp 0x43e9eb
xor rdi, rdi
mov esi, edi
mov qword [rbp + 0xb8], 0
jmp 0x43e466
mov eax, edi
sub eax, esi
cmp eax, 0x200
jge 0x43e426
add edi, 0x200
cmp qword [rbp + 0xb8], 0
je 0x43e3cc
lea rcx, [rbp + 0xb8]
movsxd rdx, edi
call fcn.004052d0
jmp 0x43e3db
movsxd rcx, edi
call fcn.00405270
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x43e426
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043eb9c]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00471010
mov rcx, rbx
call sub.msvcrt.dll__pclose
mov eax, 8
jmp 0x43e9eb
mov rax, qword [rbp + 0xb8]
movsxd rcx, esi
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xb8]
movsxd rcx, esi
lea rcx, [rax + rcx]
mov edx, 0x200
mov r8, rbx
call sub.msvcrt.dll_fgets
test rax, rax
je 0x43e482
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call fcn.0040a9e0
mov esi, eax
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x43e482
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x43e39f
nop
mov rcx, rbx
call sub.msvcrt.dll__pclose
lea rcx, [rbp + 0xb8]
mov edx, esi
add edx, 2
add edx, edx
movsxd rdx, edx
call fcn.004052d0
mov rax, qword [rbp + 0xb8]
movsxd rcx, esi
lea rax, [rax + rcx]
mov rcx, qword [rbp + 0xb8]
mov rdx, rax
movsxd r8, esi
call fcn.00405640
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x10c], esi
mov esi, dword [rbp + 0x10c]
jmp 0x43e6b2
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
jne 0x43e564
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43e564
mov eax, dword [rbp + 0x8c]
movsxd rax, eax
mov rcx, qword [rbp + 0x58]
movzx rdx, word [rbp + 0x56]
cmp word [rcx + rax*2 - 2], dx
jne 0x43e564
mov eax, dword [rbp + 0x8c]
movsxd rax, eax
mov rcx, qword [rbp + 0x58]
mov word [rcx + rax*2 - 2], 0xa
add rcx, 2
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x100], rcx
mov eax, dword [rbp + 0x8c]
sub eax, 2
mov dword [rbp + 0x8c], eax
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0x8c]
movsxd rcx, ecx
lea rax, [rax + rcx*2]
mov qword [rbp + 0x90], rax
jmp 0x43e76d
movzx rax, byte [rbp + 0x67]
test al, al
je 0x43e578
mov rcx, qword [rbp + 0x58]
call fcn.00471bd0
jmp 0x43e57c
mov rax, qword [rbp + 0x58]
mov rcx, rax
mov edx, 0x80000000
mov r8d, 5
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rbx, rax
cmp rbx, 0xffffffffffffffff
jne 0x43e5ee
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043ebcc]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00471010
call sub.kernel32.dll_GetLastError_2
jmp 0x43e9eb
mov rcx, rbx
xor rdx, rdx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov esi, eax
mov rcx, rbx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer_1
mov ecx, esi
add ecx, 2
add ecx, ecx
mov ecx, ecx
call fcn.00405270
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
test rax, rax
jne 0x43e678
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043eb9c]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00471010
mov rcx, rbx
call sub.kernel32.dll_CloseHandle_1
mov eax, 8
jmp 0x43e9eb
mov dword [rbp + 0x10c], 0xffffffff
mov rcx, rbx
mov eax, esi
mov rdx, qword [rbp + 0x98]
lea rdx, [rdx + rax]
mov r8d, esi
lea r9, [rbp + 0x10c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
mov rcx, rbx
call sub.kernel32.dll_CloseHandle_1
cmp dword [rbp + 0x10c], esi
jne 0x43e76d
mov rax, qword [0x0048a398]
mov ecx, dword [rax]
call fcn.0043b390
mov rcx, qword [0x0048a398]
mov ecx, dword [rcx]
test eax, eax
setne dl
movzx rdx, dl
mov eax, esi
mov r8, qword [rbp + 0x98]
lea r8, [r8 + rax]
mov r9d, esi
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
call sub.kernel32.dll_MultiByteToWideChar_1
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
mov esi, esi
lea rax, [rax + rsi*2]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
cmp rax, qword [rbp + 0x100]
mov qword [rbp + 0x90], rax
je 0x43e74a
mov rax, qword [rbp + 0x90]
cmp word [rax - 2], 0xa
je 0x43e761
mov rax, qword [rbp + 0x90]
mov word [rax], 0xa
add rax, 2
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov word [rax], 0
mov rax, qword [rbp + 0x90]
cmp qword [rbp + 0x100], rax
jae 0x43e959
call fcn.0046f700
mov rbx, qword [rbp + 0x100]
mov rcx, rbx
mov dx, 0xa
call fcn.00429dc0
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0
je 0x43e959
cmp qword [rbp + 0x100], rbx
jbe 0x43e7d2
mov rax, qword [rbp + 0x100]
cmp word [rax - 2], 0xd
jne 0x43e7d2
mov rax, qword [rbp + 0x100]
mov word [rax - 2], 0
mov rax, qword [rbp + 0x100]
mov word [rax], 0
add qword [rbp + 0x100], 2
mov eax, dword [rbp + 0x80]
test eax, eax
jne 0x43e936
mov edi, 1
mov eax, dword [rbp + 0x68]
sub eax, 1
cmp edi, eax
jg 0x43e825
add eax, 1
mov rcx, qword [0x004a7de0]
mov edx, dword [rbp + 0x44]
add edx, edi
movsxd rdx, edx
mov qword [rcx + rdx*8], 0
add edi, 1
cmp edi, eax
jne 0x43e807
nop
xor rdi, rdi
xor r13, r13
jmp 0x43e8f8
call fcn.0046f700
jmp 0x43e83c
add rbx, 2
cmp word [rbx], 0
je 0x43e857
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.00429dc0
test rax, rax
jne 0x43e838
test edi, edi
jne 0x43e869
movzx rax, word [rbp + 0x6e]
cmp word [rbx], ax
je 0x43e902
mov rsi, rbx
mov eax, dword [rbp + 0x78]
test eax, eax
je 0x43e89e
mov eax, r13d
add eax, 1
mov ecx, dword [rbp + 0x78]
cmp eax, ecx
jne 0x43e89e
mov rax, qword [0x004a7de0]
mov ecx, dword [rbp + 0x44]
add ecx, r13d
movsxd rcx, ecx
mov qword [rax + rcx*8], rsi
add r13d, 1
jmp 0x43e902
add rbx, 2
cmp word [rbx], 0
je 0x43e8b9
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.00429dc0
test rax, rax
je 0x43e89a
mov word [rbx], 0
cmp rsi, rbx
je 0x43e8f4
cmp edi, 0x20
jge 0x43e8f4
mov eax, 1
mov ecx, edi
shl eax, cl
mov ecx, dword [rbp + 0x7c]
test eax, ecx
je 0x43e8f1
mov rax, qword [0x004a7de0]
mov ecx, dword [rbp + 0x44]
add ecx, r13d
movsxd rcx, ecx
mov qword [rax + rcx*8], rsi
add r13d, 1
add edi, 1
add rbx, 2
cmp word [rbx], 0
jne 0x43e831
nop
test r13d, r13d
je 0x43e945
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x28]
movzx rdx, byte [rbp + 0x77]
call fcn.0043eea0
mov dword [rbp + 0x70], eax
mov ecx, dword [rbp + 0x88]
call fcn.0043f410
mov dword [rbp + 0x88], eax
xor rax, rax
mov byte [rbp + 0x77], al
jmp 0x43e945
mov eax, dword [rbp + 0x80]
sub eax, 1
mov dword [rbp + 0x80], eax
mov rax, qword [rbp + 0x90]
cmp qword [rbp + 0x100], rax
jb 0x43e781
nop
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x43e972
mov rcx, qword [rbp + 0x98]
call fcn.004052a0
mov eax, dword [rbp + 0x8c]
movsxd rax, eax
mov rcx, qword [rbp + 0x58]
lea rax, [rcx + rax*2 + 2]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
cmp word [rax], 0
je 0x43e99f
cmp byte [0x00480d74], 0
je 0x43e27f
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43e9e8
cmp qword [0x00480d78], 0
je 0x43e9e8
mov rax, qword [0x00480d78]
cmp word [rax], 0
je 0x43e9e8
mov rax, qword [0x00480d78]
mov ecx, dword [rbp + 0x44]
movsxd rcx, ecx
mov word [rax + rcx*2 + 2], 0
mov rax, qword [0x004a7de0]
mov ecx, dword [rbp + 0x44]
movsxd rcx, ecx
mov qword [rax + rcx*8 + 8], 0
mov eax, dword [rbp + 0x70]
lea rsp, [rbp + 0x110]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret