Function at 0x1800049c0
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbp, rcx
lea rdx, [rsp + 0x90]
call fcn.180003b50
nop
mov r8d, 1
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x68]
call fcn.18002b710
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
mov r9, qword [rbp + 0x78]
mov r8, qword [rbp + 0x70]
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.180004c90
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x180004ab0
cmp dword [rbx + 0x10], 0
jl 0x180004a9e
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180004a9e
call fcn.1800023a0
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180004a90
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.WS2_32.dll_htonl + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x88], rax
jmp 0x180004ab0
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x88]
call fcn.180002290
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004ad2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp dword [rbp + 0x14], 0
je 0x180004af6
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x58]
lea rdx, str._s_s.lnk
lea rcx, [rsp + 0x80]
call fcn.180004360
jmp 0x180004b24
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004bf4
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x50]
lea rdx, str._s_s.lnk
lea rcx, [rsp + 0x80]
call fcn.180004360
lea rax, [0x18006c5a8]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x80]
mov r9, rbx
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, rdi
mov rcx, qword [rbp + 0x40]
call fcn.180012220
xor r11d, r11d
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r11 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x38], rax
mov rcx, rbp
call fcn.180003a00
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004ba9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004bcc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004bed
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, 1
jmp 0x180004c5c
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004c17
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004c3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004c5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret