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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44887d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x280], esi
mov byte [ebp - 0x279], bl
mov word [ebp - 0x21c], cx
xor eax, eax
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x413380
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41370d
lea ecx, [ebp - 0x2ac]
call fcn.00424883
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.004249f0
test al, al
je 0x4136f3
lea ecx, [ebp - 0x258]
call fcn.00421dcc
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00421a90
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.00421a83
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
call fcn.0042493a
lea ecx, [ebp - 0x278]
call fcn.00421dcc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28c]
sub eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x2a8]
sub ecx, dword [ebp - 0x2ac]
add eax, 4
push eax
sub ecx, eax
push ecx
lea edx, [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x278]
call fcn.00421b2c
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x2b8]
mov edi, dword [ebp - 0x2bc]
sub ecx, edx
sub eax, edi
cmp eax, ecx
jne 0x41369a
cmp ecx, 4
jb 0x4134c4
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x4134c8
sub ecx, 4
add edx, 4
add edi, 4
cmp ecx, 4
jae 0x4134b0
cmp ecx, ebx
je 0x413517
movzx eax, byte [edi]
movzx esi, byte [edx]
sub eax, esi
jne 0x413503
cmp ecx, 1
jbe 0x413511
movzx eax, byte [edi + 1]
movzx esi, byte [edx + 1]
sub eax, esi
jne 0x413503
cmp ecx, 2
jbe 0x413511
movzx eax, byte [edi + 2]
movzx esi, byte [edx + 2]
sub eax, esi
jne 0x413503
cmp ecx, 3
jbe 0x413511
movzx eax, byte [edi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x41369a
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], ebx
call fcn.00424851
mov eax, dword [ebp - 0x298]
cmp eax, 1
sete cl
mov byte [ebp - 0x280], cl
cmp eax, 1
je 0x41354f
cmp eax, 2
jne 0x41369a
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x280]
push edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00424a1c
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x413592
mov ecx, dword [esi]
jmp 0x413594
mov ecx, esi
push eax
push ecx
mov ecx, dword [ebp - 0x228]
push ecx
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040c2e0
test eax, eax
jne 0x413669
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x280], ebx
call fcn.00424851
xor esi, esi
cmp dword [ebp - 0x280], ebx
jle 0x41364d
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
push edi
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
call fcn.00424a1c
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x244], ebx
je 0x413644
mov ebx, dword [ebp - 0x294]
call fcn.00413bc0
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0042493a
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00409e20
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x280]
jl 0x4135d3
jmp 0x41364d
mov byte [ebp - 4], 5
call fcn.00409e20
cmp esi, dword [ebp - 0x280]
jne 0x41365e
mov byte [ebp - 0x279], 1
jmp 0x413669
mov esi, dword [ebp - 0x294]
call fcn.00413cd0
cmp dword [ebp - 0x224], 8
jb 0x413681
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b4be
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00421a83
mov eax, dword [ebp - 0x2bc]
cmp eax, ebx
je 0x4136bc
push eax
call fcn.0042b4be
add esp, 4
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
cmp eax, ebx
je 0x4136e1
push eax
call fcn.0042b4be
add esp, 4
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], 0xffffffff
call fcn.00424893
mov al, byte [ebp - 0x279]
jmp 0x41370f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bea8
mov esp, ebp
pop ebp
ret 4