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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da732
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov ax, word [ebx + 8]
movups xmm0, xmmword [str.:lockxls.data]
mov word [ebp - 0x220], ax
mov eax, dword [0x4faeb8]
mov dword [ebp - 0x206], eax
movzx eax, word [0x4faebc]
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x220]
movups xmmword [ebp - 0x21e], xmm0
push eax
movq xmm0, qword [0x4faeb0]
mov byte [ebp - 0x271], 0
movq qword [ebp - 0x20e], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420906
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
sub esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x220]
call fcn.004239f0
add esp, 8
test al, al
je 0x4208d0
lea ecx, [ebp - 0x23c]
call fcn.00433510
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00433870
mov edx, dword [ebp - 0x224]
cmp edx, 0x10
jb 0x42044b
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420441
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42092c
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x290]
call fcn.00431b10
lea ecx, [ebp - 0x270]
call fcn.00433510
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x298]
sub ecx, dword [ebp - 0x29c]
mov eax, dword [ebp - 0x28c]
add ecx, 4
sub eax, dword [ebp - 0x290]
push ecx
sub eax, ecx
lea ecx, [ebp - 0x270]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00433660
mov eax, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x280]
sub eax, ecx
mov edi, dword [ebp - 0x29c]
sub esi, edi
cmp eax, esi
jne 0x4207e7
mov edx, edi
sub esi, 4
jb 0x420521
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x420526
add ecx, 4
add edx, 4
sub esi, 4
jae 0x420510
cmp esi, 0xfffffffc
je 0x420563
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4207e1
cmp esi, 0xfffffffd
je 0x420563
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4207e1
cmp esi, 0xfffffffe
je 0x420563
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4207e1
cmp esi, 0xffffffff
je 0x420563
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4207e1
mov esi, dword [ebp - 0x284]
xor edx, edx
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0x290]
sub eax, ecx
lea edi, [esi + 4]
cmp edi, eax
mov edi, dword [ebp - 0x29c]
ja 0x420592
mov edx, dword [ecx + esi]
lea eax, [esi + 4]
mov dword [ebp - 0x284], eax
cmp edx, 1
sete byte [ebp - 0x2a0]
je 0x4205a7
cmp edx, 2
jne 0x4207e1
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x290]
call fcn.0042fae0
mov eax, dword [ebx + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4205ed
mov ecx, dword [eax]
cmp dword [ebp - 0x240], 8
lea esi, [ebp - 0x254]
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x244]
cmovae esi, edi
cmp edx, dword [eax + 0x10]
jne 0x4207a1
test edx, edx
je 0x420635
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4207a1
add ecx, 2
sub edx, 1
jne 0x420620
mov edx, dword [ebp - 0x284]
xor edi, edi
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0x290]
sub eax, ecx
lea esi, [edx + 4]
cmp esi, eax
ja 0x42065b
mov edi, dword [ecx + edx]
mov dword [ebp - 0x284], esi
xor esi, esi
test edi, edi
jle 0x420763
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x290]
call fcn.0042fae0
cmp dword [ebp - 0x228], 0
je 0x42071f
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x238]
push eax
call fcn.00421330
push eax
lea ecx, [ebp - 0x290]
call fcn.00431b10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x420714
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42070a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42092c
push edx
push ecx
call fcn.0047cdbf
add esp, 8
inc esi
cmp esi, edi
jl 0x420670
jmp 0x420763
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x420763
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420759
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420931
push edx
push ecx
call fcn.0047cdbf
add esp, 8
cmp esi, edi
jne 0x420770
mov byte [ebp - 0x271], 1
jmp 0x42079b
mov edi, dword [ebp - 0x2a4]
mov ecx, edi
mov byte [ebp - 4], 6
mov esi, dword [edi]
push dword [esi + 4]
call fcn.00421640
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov edi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x4207db
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4207d1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420936
push ecx
push edi
call fcn.0047cdbf
add esp, 8
mov edi, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x42082d
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420817
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42093b
push edx
push ecx
call fcn.0047cdbf
mov edi, dword [ebp - 0x29c]
add esp, 8
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
test ecx, ecx
je 0x4208a0
mov edx, dword [ebp - 0x278]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x420872
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420940
push edx
push ecx
call fcn.0047cdbf
mov edi, dword [ebp - 0x29c]
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
test edi, edi
je 0x4208d0
mov ecx, dword [ebp - 0x294]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4208c6
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420945
push ecx
push edi
call fcn.0047cdbf
add esp, 8
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x420906
mov edx, dword [ebp - 0x288]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4208fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42094a
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov al, byte [ebp - 0x271]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cdd2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
call fcn.0048954f
int3