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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44886d
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 0x413360
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4136ed
lea ecx, [ebp - 0x2ac]
call fcn.00424837
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.004249a4
test al, al
je 0x4136d3
lea ecx, [ebp - 0x258]
call fcn.00421d22
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.004219e6
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004219d9
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.004248ee
lea ecx, [ebp - 0x278]
call fcn.00421d22
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.00421a82
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 0x41367a
cmp ecx, 4
jb 0x4134a4
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x4134a8
sub ecx, 4
add edx, 4
add edi, 4
cmp ecx, 4
jae 0x413490
cmp ecx, ebx
je 0x4134f7
movzx eax, byte [edi]
movzx esi, byte [edx]
sub eax, esi
jne 0x4134e3
cmp ecx, 1
jbe 0x4134f1
movzx eax, byte [edi + 1]
movzx esi, byte [edx + 1]
sub eax, esi
jne 0x4134e3
cmp ecx, 2
jbe 0x4134f1
movzx eax, byte [edi + 2]
movzx esi, byte [edx + 2]
sub eax, esi
jne 0x4134e3
cmp ecx, 3
jbe 0x4134f1
movzx eax, byte [edi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x41367a
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], ebx
call fcn.00424805
mov eax, dword [ebp - 0x298]
cmp eax, 1
sete cl
mov byte [ebp - 0x280], cl
cmp eax, 1
je 0x41352f
cmp eax, 2
jne 0x41367a
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.004249d0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x413572
mov ecx, dword [esi]
jmp 0x413574
mov ecx, esi
push eax
push ecx
mov ecx, dword [ebp - 0x228]
push ecx
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040c320
test eax, eax
jne 0x413649
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x280], ebx
call fcn.00424805
xor esi, esi
cmp dword [ebp - 0x280], ebx
jle 0x41362d
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.004249d0
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x244], ebx
je 0x413624
mov ebx, dword [ebp - 0x294]
call fcn.00413ba0
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004248ee
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00409e10
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x280]
jl 0x4135b3
jmp 0x41362d
mov byte [ebp - 4], 5
call fcn.00409e10
cmp esi, dword [ebp - 0x280]
jne 0x41363e
mov byte [ebp - 0x279], 1
jmp 0x413649
mov esi, dword [ebp - 0x294]
call fcn.00413cb0
cmp dword [ebp - 0x224], 8
jb 0x413661
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b4ae
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.004219d9
mov eax, dword [ebp - 0x2bc]
cmp eax, ebx
je 0x41369c
push eax
call fcn.0042b4ae
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 0x4136c1
push eax
call fcn.0042b4ae
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.00424847
mov al, byte [ebp - 0x279]
jmp 0x4136ef
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.0042be98
mov esp, ebp
pop ebp
ret 4