Function at 0x439ef0
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.004061b0
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 0x43a45d
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 0x439fbf
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x27
jne 0x439fd7
mov rax, qword [rbp + 0x100]
movzx rsi, word [rax]
add qword [rbp + 0x100], 2
jmp 0x43a390
xor rsi, rsi
jmp 0x43a390
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43a003
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jbe 0x439fe1
mov rax, qword [rbp + 0x100]
cmp word [rax], si
je 0x43a3ab
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac2c]
mov r8d, 4
call fcn.0041cdd0
test eax, eax
jne 0x43a04e
mov rax, qword [rbp + 0x100]
movzx rax, word [rax + 8]
mov word [rbp + 0x6e], ax
add qword [rbp + 0x100], 0xa
jmp 0x43a390
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac36]
mov r8d, 7
call fcn.0041cdd0
test eax, eax
jne 0x43a152
add qword [rbp + 0x100], 0xe
mov rbx, qword [rbp + 0x100]
jmp 0x43a0a3
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x20
jne 0x43a09b
mov rax, qword [rbp + 0x100]
cmp word [rax + 2], si
jne 0x43a0bc
add qword [rbp + 0x100], 2
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43a0bc
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43a081
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 0x43a111
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.00426170
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 0x43a390
add qword [rbp + 0x100], 2
jmp 0x43a390
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac46]
mov r8d, 5
call fcn.0041cdd0
test eax, eax
jne 0x43a1a7
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 0x43a354
jmp 0x43a390
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac52]
mov r8d, 8
call fcn.0041cdd0
test eax, eax
jne 0x43a1e7
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 0x43a390
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac64]
mov r8d, 7
call fcn.0041cdd0
test eax, eax
jne 0x43a227
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 0x43a390
mov rcx, qword [rbp + 0x100]
lea rdx, [0x0043ac74]
mov r8d, 7
call fcn.0041cdd0
test eax, eax
jne 0x43a354
add qword [rbp + 0x100], 0xe
xor rax, rax
mov dword [rbp + 0x7c], eax
xor r13, r13
jmp 0x43a328
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43a283
add qword [rbp + 0x100], 2
add r13d, 1
mov eax, r13d
mov dword [rbp + 0x78], eax
jmp 0x43a345
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x100]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov edi, eax
test edi, edi
jle 0x43a354
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2d
jne 0x43a2d4
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 0x43a354
jmp 0x43a2d6
mov eax, edi
test edi, edi
jle 0x43a304
cmp eax, 0x20
jge 0x43a304
cmp edi, eax
jg 0x43a303
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 0x43a2e3
nop
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2c
jne 0x43a31b
add qword [rbp + 0x100], 2
jmp 0x43a328
mov rax, qword [rbp + 0x100]
cmp word [rax], 0x2a
jne 0x43a345
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
je 0x43a345
mov rax, qword [rbp + 0x100]
cmp word [rax], si
jne 0x43a25f
nop
mov eax, dword [rbp + 0x68]
cmp r13d, eax
jle 0x43a390
mov dword [rbp + 0x68], r13d
jmp 0x43a390
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043ac90]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.0043f4f0
mov eax, 1
jmp 0x43ac1b
cmp qword [rbp + 0x100], 0
je 0x43a3ab
mov rax, qword [rbp + 0x100]
cmp word [rax], 0
jne 0x439fe9
nop
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43a45d
mov rcx, qword [0x0044b718]
mov edx, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add edx, eax
add edx, edx
call fcn.0043e060
mov qword [0x0044b718], rax
lea rcx, [0x00469df8]
mov rdx, qword [0x00437580]
mov r8d, 1
mov r9d, dword [rbp + 0x44]
mov eax, dword [rbp + 0x68]
add r9d, eax
movsxd r9, r9d
call fcn.0040bee0
xor rdi, rdi
mov eax, dword [rbp + 0x68]
cmp edi, eax
jge 0x43a446
mov rax, qword [0x0044b718]
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 [0x00469df8]
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 0x43a406
nop
mov rax, qword [0x0044b718]
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 0x43a482
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
je 0x43a495
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
je 0x43a495
mov rcx, qword [rbp + 0x58]
xor rdx, rdx
xor r8, r8
call fcn.0043e1d0
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x80]
mov dword [rbp + 0x84], eax
xor rax, rax
mov dword [rbp + 0x88], eax
jmp 0x43abb8
call fcn.004398b0
call fcn.0043dbe0
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.00426280
mov dword [rbp + 0x8c], eax
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x54]
cmp word [rax], cx
jne 0x43a710
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43a710
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 0x43a710
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.0043df40
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043acd4]
call sub.msvcrt.dll__wpopen
mov rbx, rax
test rbx, rbx
jne 0x43a5ba
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043ace8]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.0043f4f0
call sub.kernel32.dll_GetLastError_2
jmp 0x43ac1b
xor rdi, rdi
mov esi, edi
mov qword [rbp + 0xb8], 0
jmp 0x43a696
mov eax, edi
sub eax, esi
cmp eax, 0x200
jge 0x43a656
add edi, 0x200
cmp qword [rbp + 0xb8], 0
je 0x43a5fc
lea rcx, [rbp + 0xb8]
movsxd rdx, edi
call fcn.004052e0
jmp 0x43a60b
movsxd rcx, edi
call fcn.00405280
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x43a656
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043adcc]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.0043f4f0
mov rcx, rbx
call sub.msvcrt.dll__pclose
mov eax, 8
jmp 0x43ac1b
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 0x43a6b2
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call fcn.0040a690
mov esi, eax
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x43a6b2
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x43a5cf
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.004052e0
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.00405650
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x10c], esi
mov esi, dword [rbp + 0x10c]
jmp 0x43a8e2
mov rax, qword [rbp + 0x58]
movzx rcx, word [rbp + 0x56]
cmp word [rax], cx
jne 0x43a794
mov eax, dword [rbp + 0x8c]
cmp eax, 1
jle 0x43a794
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 0x43a794
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 0x43a99d
movzx rax, byte [rbp + 0x67]
test al, al
je 0x43a7a8
mov rcx, qword [rbp + 0x58]
call fcn.004400b0
jmp 0x43a7ac
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 0x43a81e
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043adfc]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.0043f4f0
call sub.kernel32.dll_GetLastError_2
jmp 0x43ac1b
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.00405280
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
test rax, rax
jne 0x43a8a8
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xa8], 0xa
lea rcx, [0x0043adcc]
mov edx, 1
lea r8, [rbp + 0xa0]
xor r9, r9
call fcn.0043f4f0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle_1
mov eax, 8
jmp 0x43ac1b
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 0x43a99d
mov rax, qword [0x0044c3c8]
mov ecx, dword [rax]
call fcn.004375c0
mov rcx, qword [0x0044c3c8]
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 0x43a97a
mov rax, qword [rbp + 0x90]
cmp word [rax - 2], 0xa
je 0x43a991
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 0x43ab89
call fcn.0043dbe0
mov rbx, qword [rbp + 0x100]
mov rcx, rbx
mov dx, 0xa
call fcn.004261e0
mov qword [rbp + 0x100], rax
cmp qword [rbp + 0x100], 0
je 0x43ab89
cmp qword [rbp + 0x100], rbx
jbe 0x43aa02
mov rax, qword [rbp + 0x100]
cmp word [rax - 2], 0xd
jne 0x43aa02
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 0x43ab66
mov edi, 1
mov eax, dword [rbp + 0x68]
sub eax, 1
cmp edi, eax
jg 0x43aa55
add eax, 1
mov rcx, qword [0x00469df8]
mov edx, dword [rbp + 0x44]
add edx, edi
movsxd rdx, edx
mov qword [rcx + rdx*8], 0
add edi, 1
cmp edi, eax
jne 0x43aa37
nop
xor rdi, rdi
xor r13, r13
jmp 0x43ab28
call fcn.0043dbe0
jmp 0x43aa6c
add rbx, 2
cmp word [rbx], 0
je 0x43aa87
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.004261e0
test rax, rax
jne 0x43aa68
test edi, edi
jne 0x43aa99
movzx rax, word [rbp + 0x6e]
cmp word [rbx], ax
je 0x43ab32
mov rsi, rbx
mov eax, dword [rbp + 0x78]
test eax, eax
je 0x43aace
mov eax, r13d
add eax, 1
mov ecx, dword [rbp + 0x78]
cmp eax, ecx
jne 0x43aace
mov rax, qword [0x00469df8]
mov ecx, dword [rbp + 0x44]
add ecx, r13d
movsxd rcx, ecx
mov qword [rax + rcx*8], rsi
add r13d, 1
jmp 0x43ab32
add rbx, 2
cmp word [rbx], 0
je 0x43aae9
lea rcx, [rbp + 0xc0]
movzx rdx, word [rbx]
call fcn.004261e0
test rax, rax
je 0x43aaca
mov word [rbx], 0
cmp rsi, rbx
je 0x43ab24
cmp edi, 0x20
jge 0x43ab24
mov eax, 1
mov ecx, edi
shl eax, cl
mov ecx, dword [rbp + 0x7c]
test eax, ecx
je 0x43ab21
mov rax, qword [0x00469df8]
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 0x43aa61
nop
test r13d, r13d
je 0x43ab75
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x28]
movzx rdx, byte [rbp + 0x77]
call fcn.0043b0d0
mov dword [rbp + 0x70], eax
mov ecx, dword [rbp + 0x88]
call fcn.0043b640
mov dword [rbp + 0x88], eax
xor rax, rax
mov byte [rbp + 0x77], al
jmp 0x43ab75
mov eax, dword [rbp + 0x80]
sub eax, 1
mov dword [rbp + 0x80], eax
mov rax, qword [rbp + 0x90]
cmp qword [rbp + 0x100], rax
jb 0x43a9b1
nop
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x43aba2
mov rcx, qword [rbp + 0x98]
call fcn.004052b0
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 0x43abcf
cmp byte [0x0044b714], 0
je 0x43a4af
mov eax, dword [rbp + 0x68]
cmp eax, 1
jle 0x43ac18
cmp qword [0x0044b718], 0
je 0x43ac18
mov rax, qword [0x0044b718]
cmp word [rax], 0
je 0x43ac18
mov rax, qword [0x0044b718]
mov ecx, dword [rbp + 0x44]
movsxd rcx, ecx
mov word [rax + rcx*2 + 2], 0
mov rax, qword [0x00469df8]
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