Function at 0x4132f0
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 [0x45c2c0]
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 0x413340
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4136cd
lea ecx, [ebp - 0x2ac]
call fcn.00424416
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.00424583
test al, al
je 0x4136b3
lea ecx, [ebp - 0x258]
call fcn.00421cd4
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00421998
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.0042198b
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.004244cd
lea ecx, [ebp - 0x278]
call fcn.00421cd4
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.00421a34
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 0x41365a
cmp ecx, 4
jb 0x413484
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [edx]
jne 0x413488
sub ecx, 4
add edx, 4
add edi, 4
cmp ecx, 4
jae 0x413470
cmp ecx, ebx
je 0x4134d7
movzx eax, byte [edi]
movzx esi, byte [edx]
sub eax, esi
jne 0x4134c3
cmp ecx, 1
jbe 0x4134d1
movzx eax, byte [edi + 1]
movzx esi, byte [edx + 1]
sub eax, esi
jne 0x4134c3
cmp ecx, 2
jbe 0x4134d1
movzx eax, byte [edi + 2]
movzx esi, byte [edx + 2]
sub eax, esi
jne 0x4134c3
cmp ecx, 3
jbe 0x4134d1
movzx eax, byte [edi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x41365a
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], ebx
call fcn.004243e4
mov eax, dword [ebp - 0x298]
cmp eax, 1
sete cl
mov byte [ebp - 0x280], cl
cmp eax, 1
je 0x41350f
cmp eax, 2
jne 0x41365a
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.004245af
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x413552
mov ecx, dword [esi]
jmp 0x413554
mov ecx, esi
push eax
push ecx
mov ecx, dword [ebp - 0x228]
push ecx
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040c260
test eax, eax
jne 0x413629
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x280], ebx
call fcn.004243e4
xor esi, esi
cmp dword [ebp - 0x280], ebx
jle 0x41360d
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.004245af
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x244], ebx
je 0x413604
mov ebx, dword [ebp - 0x294]
call fcn.00413b80
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004244cd
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00409de0
inc esi
xor ebx, ebx
cmp esi, dword [ebp - 0x280]
jl 0x413593
jmp 0x41360d
mov byte [ebp - 4], 5
call fcn.00409de0
cmp esi, dword [ebp - 0x280]
jne 0x41361e
mov byte [ebp - 0x279], 1
jmp 0x413629
mov esi, dword [ebp - 0x294]
call fcn.00413c90
cmp dword [ebp - 0x224], 8
jb 0x413641
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b3ce
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.0042198b
mov eax, dword [ebp - 0x2bc]
cmp eax, ebx
je 0x41367c
push eax
call fcn.0042b3ce
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 0x4136a1
push eax
call fcn.0042b3ce
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.00424426
mov al, byte [ebp - 0x279]
jmp 0x4136cf
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.0042bdb8
mov esp, ebp
pop ebp
ret 4