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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4488ad
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 0x4133c0
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41374d
lea ecx, [ebp - 0x2ac]
call fcn.004245e3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.00424750
test al, al
je 0x413733
lea ecx, [ebp - 0x258]
call fcn.00421dff
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00421ac3
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.00421ab6
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.0042469a
lea ecx, [ebp - 0x278]
call fcn.00421dff
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.00421b5f
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 0x4136da
cmp ecx, 4
jb 0x413504
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x413508
sub ecx, 4
add edx, 4
add edi, 4
cmp ecx, 4
jae 0x4134f0
cmp ecx, ebx
je 0x413557
movzx eax, byte [edi]
movzx esi, byte [edx]
sub eax, esi
jne 0x413543
cmp ecx, 1
jbe 0x413551
movzx eax, byte [edi + 1]
movzx esi, byte [edx + 1]
sub eax, esi
jne 0x413543
cmp ecx, 2
jbe 0x413551
movzx eax, byte [edi + 2]
movzx esi, byte [edx + 2]
sub eax, esi
jne 0x413543
cmp ecx, 3
jbe 0x413551
movzx eax, byte [edi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x4136da
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], ebx
call fcn.004245b1
mov eax, dword [ebp - 0x298]
cmp eax, 1
sete cl
mov byte [ebp - 0x280], cl
cmp eax, 1
je 0x41358f
cmp eax, 2
jne 0x4136da
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.0042477c
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4135d2
mov ecx, dword [esi]
jmp 0x4135d4
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 0x4136a9
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x280], ebx
call fcn.004245b1
xor esi, esi
cmp dword [ebp - 0x280], ebx
jle 0x41368d
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.0042477c
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x244], ebx
je 0x413684
mov ebx, dword [ebp - 0x294]
call fcn.00413c00
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0042469a
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00409e20
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x280]
jl 0x413613
jmp 0x41368d
mov byte [ebp - 4], 5
call fcn.00409e20
cmp esi, dword [ebp - 0x280]
jne 0x41369e
mov byte [ebp - 0x279], 1
jmp 0x4136a9
mov esi, dword [ebp - 0x294]
call fcn.00413d10
cmp dword [ebp - 0x224], 8
jb 0x4136c1
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b4ee
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.00421ab6
mov eax, dword [ebp - 0x2bc]
cmp eax, ebx
je 0x4136fc
push eax
call fcn.0042b4ee
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 0x413721
push eax
call fcn.0042b4ee
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.004245f3
mov al, byte [ebp - 0x279]
jmp 0x41374f
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.0042bed8
mov esp, ebp
pop ebp
ret 4