Function at 0x435220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2b8
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
nop
xor rdi, rdi
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x18]
call fcn.00440b00
mov rbx, rax
mov rcx, rbx
call fcn.00426cd0
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
cmp eax, 0x104
jl 0x4352c2
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x233f
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rax, qword [0x0044d290]
cmp byte [rax], 0
je 0x4352f7
mov rcx, rbx
lea rdx, [0x00435b38]
mov r8d, 4
call fcn.0041d820
test eax, eax
jne 0x4352f7
lea rcx, [0x00435b42]
call fcn.00429150
mov rbx, rax
lea rcx, [rbp + 0x9a]
xor rdx, rdx
mov r8d, 0x104
call fcn.00426e60
lea rcx, [rbp + 0x9a]
mov rdx, rbx
call fcn.00426cf0
lea rcx, [rbp + 0x9a]
mov dx, 0x2f
call fcn.0042bfe0
mov word [rbp + 0x2aa], 0x5c
mov word [rbp + 0x2ac], 0x3a
mov word [rbp + 0x2ae], 0
lea rcx, [rbp + 0x9a]
lea rdx, [rbp + 0x2aa]
call fcn.00426d30
mov ecx, dword [rbp + 0x40]
cmp eax, ecx
setl al
mov byte [rbp + 0x37], al
mov word [rbp + 0x2ac], 0
movzx rax, byte [rbp + 0x37]
test al, al
je 0x4353a8
lea rcx, [rbp + 0x9a]
mov dx, 0x5c
call fcn.00426c60
mov rbx, rax
test rbx, rbx
jne 0x4353a2
lea rcx, [rbp + 0x9a]
mov dx, 0x3a
call fcn.00426c30
mov rbx, rax
add rbx, 2
jmp 0x4353af
lea rbx, [rbp + 0x9a]
test rbx, rbx
je 0x4353da
mov rcx, rbx
lea rdx, [0x00435b52]
call fcn.0041d700
test eax, eax
je 0x4353da
mov rcx, rbx
lea rdx, [0x00435b56]
call fcn.0041d700
test eax, eax
jne 0x435422
mov rax, qword [0x0044d290]
cmp byte [rax], 0
je 0x43540a
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43540a
test eax, 0x10
je 0x43540a
mov eax, 5
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov ecx, 0x410
call fcn.0043e990
mov rsi, rax
test rsi, rsi
jne 0x435450
mov rax, qword [0x0044d5d0]
mov dword [rax], 8
mov eax, 3
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x9a]
call fcn.00426cf0
mov rax, rbx
mov rcx, rax
call fcn.0040af20
mov r13d, eax
lea rcx, [rbp + 0x9a]
call fcn.00426cd0
movsxd rax, eax
mov r13d, r13d
neg r13
lea rax, [rax + r13]
mov rcx, qword [rbp + 0x28]
mov word [rcx + rax*2], 0
lea rdx, [0x00435b52]
call fcn.00426d10
mov rcx, rsi
mov rdx, qword [rbp + 0x28]
mov r8d, 0x208
call fcn.0042b520
test eax, eax
je 0x4354fc
mov rax, qword [0x0044d290]
cmp byte [rax], 0
je 0x4354e4
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4354e4
test eax, 0x10
je 0x4354e4
mov eax, 5
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, rsi
call fcn.00426e80
cmp word [rax], 0x5c
je 0x435519
mov rcx, rsi
lea rdx, [0x00435b5c]
call fcn.00426d10
mov rcx, rsi
mov rdx, rbx
call fcn.00426d10
mov rcx, rsi
call fcn.00426cd0
mov rcx, rsi
mov edx, eax
add edx, 1
add edx, edx
call fcn.0043eab0
mov rsi, rax
mov rcx, rsi
mov dx, 0x5c
call fcn.00426c60
mov qword [rbp + 0x38], rax
mov word [rax], 0
add rax, 2
mov qword [rbp + 0x38], rax
movzx rax, byte [rbp + 0x37]
test al, al
jne 0x435573
lea rcx, [0x00435b60]
call fcn.00429150
mov rdi, rax
mov rcx, rsi
call fcn.00426cd0
mov ebx, eax
mov rcx, rdi
call fcn.00426cd0
mov ecx, ebx
add ecx, eax
add ecx, 4
add ecx, ecx
call fcn.0043e990
mov rbx, rax
test rbx, rbx
jne 0x4355b6
mov rax, qword [0x0044d5d0]
mov dword [rax], 8
mov eax, 3
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, rbx
lea rdx, [0x00435b6a]
call fcn.00426d10
mov rcx, rbx
mov rdx, rsi
call fcn.00426d10
mov rcx, rbx
lea rdx, [0x00435b6a]
call fcn.00426d10
movzx rax, byte [rbp + 0x37]
test al, al
jne 0x435602
mov rcx, rbx
lea rdx, [0x00435b6e]
call fcn.00426d10
mov rcx, rbx
mov rdx, rdi
call fcn.00426d10
mov rcx, rbx
call fcn.00436a70
mov rcx, rbx
lea rdx, [0x00435b6e]
mov r8d, 1
call fcn.0043ec20
mov rbx, rax
mov rcx, qword [rbp + 0x38]
call fcn.00426cd0
add eax, 1
mov dword [rbp + 0x40], eax
mov rax, qword [0x0044d290]
cmp byte [rax], 0
je 0x43564f
lea rcx, [0x00435b72]
call fcn.00429150
mov rsi, rax
jmp 0x435656
lea rsi, [0x00435b82]
mov rcx, rsi
call fcn.00436a70
mov rcx, rsi
lea rdx, [0x00435b6e]
mov r8d, 1
call fcn.0043ec20
mov rsi, rax
mov rcx, rbx
call fcn.00426cd0
mov edi, eax
mov rcx, rbx
call fcn.00440b00
mov rcx, rbx
mov rdx, rax
call fcn.00426cf0
mov rcx, rbx
call fcn.00426cd0
mov r13d, eax
mov rcx, rbx
call fcn.00426e80
cmp word [rax], 0x5c
je 0x4356b9
mov r14b, 1
add edi, 1
add r13d, 1
jmp 0x4356bc
xor r14, r14
cmp word [rbx], 0
je 0x4356f2
mov eax, r13d
mov ecx, dword [rbp + 0x40]
movsxd rcx, ecx
lea rax, [rax + rcx]
cmp rax, 0x104
jle 0x4356f2
test r14b, r14b
je 0x4356e8
movsxd rdi, edi
add rdi, rdi
add rbx, rdi
jmp 0x435677
movsxd rdi, edi
lea rbx, [rbx + rdi*2 + 2]
jmp 0x435677
cmp word [rbx], 0
jne 0x435740
movzx rax, byte [rbp + 0x37]
test al, al
je 0x435728
mov rax, qword [0x0044d5d0]
cmp dword [rax], 0
je 0x435719
mov rax, qword [0x0044d5d0]
cmp dword [rax], 2
jne 0x435735
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x2331
jmp 0x435735
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00426cf0
test r14b, r14b
je 0x43575c
movsxd rdi, edi
add rdi, rdi
add rbx, rdi
jmp 0x435764
movsxd rdi, edi
lea rbx, [rbx + rdi*2 + 2]
test r14b, r14b
je 0x435779
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x2aa]
call fcn.00426d10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00426d10
mov rcx, qword [rbp + 0x28]
call fcn.00440b00
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.00426cf0
mov rcx, qword [rbp + 0x28]
call fcn.00426cd0
mov r14d, eax
mov rax, qword [rbp + 0x28]
cmp word [rax + 2], 0x3a
jne 0x4357c7
mov rax, qword [rbp + 0x28]
movzx rcx, word [rax]
call fcn.004409b0
test al, al
je 0x435677
mov rcx, qword [rbp + 0x38]
mov dx, 0x2e
call fcn.00426c60
mov rdi, rax
test rdi, rdi
je 0x4358f1
cmp word [rdi + 2], 0
je 0x4358f1
mov rcx, qword [rbp + 0x28]
mov dl, 1
call fcn.0042bef0
test al, al
jne 0x435817
movzx rax, byte [rbp + 0x37]
test al, al
je 0x4358d5
mov rax, qword [0x0044d5d0]
cmp dword [rax], 5
jne 0x4358d5
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x28]
call fcn.0040b5a0
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
call fcn.0041d4d0
mov rcx, qword [rbp + 0x88]
call fcn.0040b520
mov rbx, rax
lea rcx, [rbp + 0x70]
call fcn.00426b30
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
call fcn.0041d4d0
mov rcx, qword [rbp + 0x78]
call fcn.0040b520
mov rcx, rbx
mov rdx, rax
call fcn.0041d730
test eax, eax
jne 0x435885
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, rdi
lea rdx, [0x00435baa]
call fcn.0041d730
test eax, eax
jne 0x4358a6
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rcx, rdi
lea rdx, [0x00435bb4]
call fcn.0041d730
test eax, eax
jne 0x4358c7
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rax, qword [0x0044d5d0]
cmp dword [rax], 2
je 0x4358f1
mov rax, qword [0x0044d5d0]
cmp dword [rax], 0
jne 0x435677
mov rcx, qword [rbp + 0x38]
mov dx, 0x2a
call fcn.00426c30
test rax, rax
jne 0x435915
mov rcx, qword [rbp + 0x38]
mov dx, 0x3f
call fcn.00426c30
test rax, rax
je 0x43592d
mov rax, qword [0x0044d5d0]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rdi, rsi
mov rcx, qword [rbp + 0x28]
mov edx, r14d
lea r8, [0x00435bbe]
xor r9, r9
call fcn.00435bd0
test eax, eax
je 0x435a6d
jmp 0x435a62
mov rcx, rdi
call fcn.00426cd0
mov ecx, dword [rbp + 0x40]
movsxd rcx, ecx
mov edx, r13d
lea rcx, [rcx + rdx]
movsxd rax, eax
lea rax, [rcx + rax]
cmp rax, 0x104
jg 0x435a58
mov rcx, qword [rbp + 0x28]
mov edx, r14d
mov r8, rdi
mov r9b, 1
call fcn.00435bd0
test eax, eax
je 0x435a3a
mov rcx, rdi
lea rdx, [0x00435bb4]
call fcn.0041d730
test eax, eax
je 0x4359bc
mov rcx, rdi
lea rdx, [0x00435baa]
call fcn.0041d730
test eax, eax
jne 0x4359ca
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x435adf
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x28]
call fcn.0040b5a0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.0041d4d0
mov rcx, qword [rbp + 0x68]
call fcn.0040b520
mov rbx, rax
lea rcx, [rbp + 0x50]
call fcn.00426b30
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0041d4d0
mov rcx, qword [rbp + 0x58]
call fcn.0040b520
mov rcx, rbx
mov rdx, rax
call fcn.0041d730
test eax, eax
jne 0x435a2c
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x435adf
mov rax, qword [0x0044d5d0]
cmp dword [rax], 2
je 0x435a58
mov rax, qword [0x0044d5d0]
cmp dword [rax], 0
jne 0x435a6c
jmp 0x435a58
add rdi, 2
cmp word [rdi], 0
jne 0x435a54
add rdi, 2
cmp word [rdi], 0
jne 0x435953
nop
mov rax, qword [0x0044d5d0]
cmp dword [rax], 0
je 0x435a89
mov rax, qword [0x0044d5d0]
cmp dword [rax], 2
jne 0x435677
mov rcx, qword [rbp + 0x28]
mov edx, r14d
xor r8, r8
mov r9b, 1
call fcn.00435bd0
test eax, eax
je 0x435677
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x2a4]
call sub.kernel32.dll_GetBinaryTypeW
test eax, eax
je 0x435677
cmp dword [rbp + 0x2a4], 4
jne 0x435677
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x435adf
lea rcx, [rbp + 0x50]
mov edx, 8
call fcn.0040a940
mov eax, dword [rbp + 0x44]
lea rsp, [rbp + 0x2b8]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret