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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44872d
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 0x413370
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4136fd
lea ecx, [ebp - 0x2ac]
call fcn.00424500
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.0042466d
test al, al
je 0x4136e3
lea ecx, [ebp - 0x258]
call fcn.00421c1f
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.004218e3
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004218d6
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.004245b7
lea ecx, [ebp - 0x278]
call fcn.00421c1f
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.0042197f
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 0x41368a
cmp ecx, 4
jb 0x4134b4
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x4134b8
sub ecx, 4
add edx, 4
add edi, 4
cmp ecx, 4
jae 0x4134a0
cmp ecx, ebx
je 0x413507
movzx eax, byte [edi]
movzx esi, byte [edx]
sub eax, esi
jne 0x4134f3
cmp ecx, 1
jbe 0x413501
movzx eax, byte [edi + 1]
movzx esi, byte [edx + 1]
sub eax, esi
jne 0x4134f3
cmp ecx, 2
jbe 0x413501
movzx eax, byte [edi + 2]
movzx esi, byte [edx + 2]
sub eax, esi
jne 0x4134f3
cmp ecx, 3
jbe 0x413501
movzx eax, byte [edi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x41368a
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], ebx
call fcn.004244ce
mov eax, dword [ebp - 0x298]
cmp eax, 1
sete cl
mov byte [ebp - 0x280], cl
cmp eax, 1
je 0x41353f
cmp eax, 2
jne 0x41368a
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.00424699
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x413582
mov ecx, dword [esi]
jmp 0x413584
mov ecx, esi
push eax
push ecx
mov ecx, dword [ebp - 0x228]
push ecx
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040c2d0
test eax, eax
jne 0x413659
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x280], ebx
call fcn.004244ce
xor esi, esi
cmp dword [ebp - 0x280], ebx
jle 0x41363d
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.00424699
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x244], ebx
je 0x413634
mov ebx, dword [ebp - 0x294]
call fcn.00413bb0
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004245b7
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00409e20
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x280]
jl 0x4135c3
jmp 0x41363d
mov byte [ebp - 4], 5
call fcn.00409e20
cmp esi, dword [ebp - 0x280]
jne 0x41364e
mov byte [ebp - 0x279], 1
jmp 0x413659
mov esi, dword [ebp - 0x294]
call fcn.00413cc0
cmp dword [ebp - 0x224], 8
jb 0x413671
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b39e
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.004218d6
mov eax, dword [ebp - 0x2bc]
cmp eax, ebx
je 0x4136ac
push eax
call fcn.0042b39e
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 0x4136d1
push eax
call fcn.0042b39e
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.00424510
mov al, byte [ebp - 0x279]
jmp 0x4136ff
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.0042bd88
mov esp, ebp
pop ebp
ret 4