Function at 0x43a9e0
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.004060f0
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 0x43af4d
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 0x43aaaf
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x27
jne 0x43aac7
mov rax, qword [rbp + 0x100]
movzx rsi, word [rax]
add qword [rbp + 0x100], 2
jmp 0x43ae80
xor rsi, rsi
jmp 0x43ae80
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43aaf3
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jbe 0x43aad1
mov rax, qword [rbp + 0x100]
cmp word [rax], si
je 0x43ae9b
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b718]
mov r8d, 4
call fcn.0041cf30
test eax, eax
jne 0x43ab3e
mov rax, qword [rbp + 0x100]
movzx rax, word [rax + 8]
mov word [rbp + 0x6e], ax
add qword [rbp + 0x100], 0xa
jmp 0x43ae80
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b722]
mov r8d, 7
call fcn.0041cf30
test eax, eax
jne 0x43ac42
add qword [rbp + 0x100], 0xe
mov rbx, qword [rbp + 0x100]
jmp 0x43ab93
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jne 0x43ab8b
mov rax, qword [rbp + 0x100]
cmp word [rax + 2], si
jne 0x43abac
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43abac
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43ab71
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 0x43ac01
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.00426c00
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 0x43ae80
add qword [rbp + 0x100], 2
jmp 0x43ae80
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b732]
mov r8d, 5
call fcn.0041cf30
test eax, eax
jne 0x43ac97
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 0x43ae44
jmp 0x43ae80
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b73e]
mov r8d, 8
call fcn.0041cf30
test eax, eax
jne 0x43acd7
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 0x43ae80
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b750]
mov r8d, 7
call fcn.0041cf30
test eax, eax
jne 0x43ad17
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 0x43ae80
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043b760]
mov r8d, 7
call fcn.0041cf30
test eax, eax
jne 0x43ae44
add qword [rbp + 0x100], 0xe
xor rax, rax
mov dword [rbp + 0x7c], eax
xor r13, r13
jmp 0x43ae18
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43ad73
add qword [rbp + 0x100], 2
add r13d, 1
mov eax, r13d
mov dword [rbp + 0x78], eax
jmp 0x43ae35
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x100]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov edi, eax
test edi, edi
jle 0x43ae44
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2d
jne 0x43adc4
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 0x43ae44
jmp 0x43adc6
mov eax, edi
test edi, edi
jle 0x43adf4
cmp eax, 0x20
jge 0x43adf4
cmp edi, eax
jg 0x43adf3
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 0x43add3
nop
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2c
jne 0x43ae0b
add qword [rbp + 0x100], 2
jmp 0x43ae18
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43ae35
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43ae35
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43ad4f
nop
mov eax, dword [rbp + 0x68]
cmp r13d, eax
jle 0x43ae80
mov dword [rbp + 0x68], r13d
jmp 0x43ae80
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043b77c]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00440100
mov eax, 1
jmp 0x43b708
cmp qword [rbp + 0x100], 0
je 0x43ae9b
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
jne 0x43aad9
nop
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43af4d
mov rcx, qword [0x0044c7a8]
mov edx, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add edx, eax
add edx, edx
call fcn.0043ec40
mov qword [0x0044c7a8], rax
lea rcx, [0x0046afd8]
mov rdx, qword [0x00438090]
mov r8d, 1
mov r9d, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add r9d, eax
movsxd r9, r9d
call fcn.0040bce0
xor rdi, rdi
mov eax, dword [rbp + 0x68]
cmp edi, eax
jge 0x43af36
mov rax, qword [0x0044c7a8]
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 [0x0046afd8]
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 0x43aef6
nop
mov rax, qword [0x0044c7a8]
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 0x43af72
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
je 0x43af85
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
je 0x43af85
mov rcx, qword [rbp + 0x58]
xor rdx, rdx
xor r8, r8
call fcn.0043edb0
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x80]
mov dword [rbp + 0x84], eax
xor rax, rax
mov dword [rbp + 0x88], eax
jmp 0x43b6a5
call fcn.0043a3b0
call fcn.0043e6d0
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.00426d10
mov dword [rbp + 0x8c], eax
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
jne 0x43b1fd
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43b1fd
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 0x43b1fd
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.0043ea20
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043b7c0]
call sub.msvcrt.dll__wpopen
mov rbx, rax
test rbx, rbx
jne 0x43b0aa
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043b7d4]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00440100
call sub.kernel32.dll_GetLastError_2
jmp 0x43b708
xor rdi, rdi
mov esi, edi
mov qword [rbp + 0xb8], 0
jmp 0x43b183
mov eax, edi
sub eax, esi
cmp eax, 0x200
jge 0x43b146
add edi, 0x200
cmp qword [rbp + 0xb8], 0
je 0x43b0ec
lea rcx, [rbp + 0xb8]
movsxd rdx, edi
call fcn.00405220
jmp 0x43b0fb
movsxd rcx, edi
call fcn.004051c0
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x43b146
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043b8b8]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00440100
mov rcx, rbx
call sub.msvcrt.dll__pclose
mov eax, 8
jmp 0x43b708
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 0x43b19f
mov rcx, qword [rbp + 0xb8]
call fcn.0040a4d0
mov esi, eax
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x43b19f
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x43b0bf
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.00405220
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.00405590
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x10c], esi
mov esi, dword [rbp + 0x10c]
jmp 0x43b3cf
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
jne 0x43b281
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43b281
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 0x43b281
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 0x43b48a
movzx rax, byte [rbp + 0x67]
test al, al
je 0x43b295
mov rcx, qword [rbp + 0x58]
call fcn.00440d60
jmp 0x43b299
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 0x43b30b
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043b8e8]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00440100
call sub.kernel32.dll_GetLastError_2
jmp 0x43b708
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.004051c0
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
test rax, rax
jne 0x43b395
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043b8b8]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.00440100
mov rcx, rbx
call sub.kernel32.dll_CloseHandle_1
mov eax, 8
jmp 0x43b708
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 0x43b48a
mov rax, qword [0x0044d3e8]
mov ecx, dword [rax]
call fcn.004380d0
mov rcx, qword [0x0044d3e8]
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 0x43b467
mov rax, qword [rbp + 0x90]
cmp word [rax - 2], 0xa
je 0x43b47e
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 0x43b676
call fcn.0043e6d0
mov rbx, qword [rbp + 0x100]
mov rcx, rbx
mov dx, 0xa
call fcn.00426c70
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0
je 0x43b676
cmp qword [rbp + 0x100], rbx
jbe 0x43b4ef
mov rax, qword [rbp + 0x100]
cmp word [rax - 2], 0xd
jne 0x43b4ef
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 0x43b653
mov edi, 1
mov eax, dword [rbp + 0x68]
sub eax, 1
cmp edi, eax
jg 0x43b542
add eax, 1
mov rcx, qword [0x0046afd8]
mov edx, dword [rbp + 0x44]
add edx, edi
movsxd rdx, edx
mov qword [rcx + rdx*8], 0
add edi, 1
cmp edi, eax
jne 0x43b524
nop
xor rdi, rdi
xor r13, r13
jmp 0x43b615
call fcn.0043e6d0
jmp 0x43b559
add rbx, 2
cmp word [rbx], 0
je 0x43b574
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.00426c70
test rax, rax
jne 0x43b555
test edi, edi
jne 0x43b586
movzx rax, word [rbp + 0x6e]
cmp word [rbx], ax
je 0x43b61f
mov rsi, rbx
mov eax, dword [rbp + 0x78]
test eax, eax
je 0x43b5bb
mov eax, r13d
add eax, 1
mov ecx, dword [rbp + 0x78]
cmp eax, ecx
jne 0x43b5bb
mov rax, qword [0x0046afd8]
mov ecx, dword [rbp + 0x44]
add ecx, r13d
movsxd rcx, ecx
mov qword [rax + rcx*8], rsi
add r13d, 1
jmp 0x43b61f
add rbx, 2
cmp word [rbx], 0
je 0x43b5d6
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.00426c70
test rax, rax
je 0x43b5b7
mov word [rbx], 0
cmp rsi, rbx
je 0x43b611
cmp edi, 0x20
jge 0x43b611
mov eax, 1
mov ecx, edi
shl eax, cl
mov ecx, dword [rbp + 0x7c]
test eax, ecx
je 0x43b60e
mov rax, qword [0x0046afd8]
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 0x43b54e
nop
test r13d, r13d
je 0x43b662
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x28]
movzx rdx, byte [rbp + 0x77]
call fcn.0043bbc0
mov dword [rbp + 0x70], eax
mov ecx, dword [rbp + 0x88]
call fcn.0043c140
mov dword [rbp + 0x88], eax
xor rax, rax
mov byte [rbp + 0x77], al
jmp 0x43b662
mov eax, dword [rbp + 0x80]
sub eax, 1
mov dword [rbp + 0x80], eax
mov rax, qword [rbp + 0x90]
cmp qword [rbp + 0x100], rax
jb 0x43b49e
nop
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x43b68f
mov rcx, qword [rbp + 0x98]
call fcn.004051f0
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 0x43b6bc
cmp byte [0x0044c7a4], 0
je 0x43af9f
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43b705
cmp qword [0x0044c7a8], 0
je 0x43b705
mov rax, qword [0x0044c7a8]
cmp word [rax], 0
je 0x43b705
mov rax, qword [0x0044c7a8]
mov ecx, dword [rbp + 0x44]
movsxd rcx, ecx
mov word [rax + rcx*2 + 2], 0
mov rax, qword [0x0046afd8]
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