Function at 0x5223a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ddbd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x40], esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [ecx], eax
je 0x5227e6
push eax
push dword [ecx]
call fcn.0041c700
add esp, 8
test eax, eax
je 0x5227e6
mov edi, dword [esi]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
lea ecx, [edi - 8]
cmp ecx, 0x7a1354
je 0x52240e
mov eax, 1
lock xadd dword [ecx], eax
mov dword [ebp - 4], 0
mov esi, edi
cmp byte [edi], 0
je 0x5224a3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x522425
sub ecx, edx
xor edx, edx
lea eax, [esi + ecx]
mov cl, byte [eax - 1]
dec eax
and cl, 0xc0
cmp cl, 0x80
jne 0x522445
inc edx
cmp edx, 4
jl 0x522433
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
call fcn.0040faa0
cmp eax, 0x5c
jne 0x5224a3
lea ecx, [ebp - 0x30]
call fcn.0040fc40
dec eax
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00519d70
mov eax, edi
or ebx, 4
mov edi, dword [ebp - 0x28]
mov esi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x522417
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x522417
push ecx
call fcn.004a8172
add esp, 4
jmp 0x522417
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], edi
mov eax, dword [esi]
cmp byte [eax], 0
je 0x5224e8
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
test al, 0x10
jne 0x5224e8
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00523ef0
or ebx, 2
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], ebx
jmp 0x5224ea
mov eax, esi
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00524720
mov dword [ebp - 4], 4
test bl, 2
je 0x522522
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x522522
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x522522
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x28], 0
mov esi, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], eax
mov dl, byte [edi]
inc edi
mov dword [ebp + 0xc], ecx
test dl, dl
js 0x52254c
movzx edx, dl
mov dword [ebp - 0x18], edx
jmp 0x5225aa
movzx ebx, dl
mov edx, 0x40
mov dword [ebp - 0x18], 0x7f
mov dword [ebp - 0x10], 0
test dl, bl
je 0x522577
cmp edx, 8
jbe 0x522577
shr dword [ebp - 0x18], 1
inc dword [ebp - 0x10]
shr edx, 1
test ebx, edx
jne 0x522566
and dword [ebp - 0x18], ebx
sub dword [ebp - 0x10], 1
js 0x5225aa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx ebx, byte [edi]
mov edx, ebx
and dl, 0xc0
cmp dl, 0x80
jne 0x5225a1
and ebx, 0x3f
shl ecx, 6
inc edi
or ecx, ebx
sub eax, 1
jns 0x522586
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
inc eax
test dl, dl
mov dword [ebp - 0x1c], eax
movzx edx, dl
js 0x5225bc
mov dword [ebp - 0x14], edx
jmp 0x52261a
mov ebx, 0x40
mov dword [ebp - 0x14], 0x7f
mov dword [ebp - 0x10], 0
test bl, dl
je 0x5225e4
cmp ebx, 8
jbe 0x5225e4
shr dword [ebp - 0x14], 1
inc dword [ebp - 0x10]
shr ebx, 1
test edx, ebx
jne 0x5225d3
and edx, dword [ebp - 0x14]
sub dword [ebp - 0x10], 1
mov dword [ebp - 0x14], edx
js 0x52261a
mov ecx, dword [ebp - 0x10]
movzx ebx, byte [eax]
mov edx, ebx
and dl, 0xc0
cmp dl, 0x80
mov edx, dword [ebp - 0x14]
jne 0x522614
and ebx, 0x3f
shl edx, 6
or edx, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x14], edx
jns 0x5225f3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
cmp ebx, edx
je 0x522645
push ebx
call fcn.004c3df9
push dword [ebp - 0x14]
movzx ebx, ax
call fcn.004c3df9
movzx eax, ax
add esp, 8
cmp ebx, eax
jne 0x52266d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x52266d
mov edx, dword [ebp - 0x38]
inc edx
cmp ebx, 0x5c
mov dword [ebp - 0x38], edx
cmovne edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov edx, edi
cmovne edx, ecx
mov ecx, edx
mov edx, eax
cmovne edx, esi
mov esi, edx
jmp 0x52253a
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x5227c0
cmp eax, 1
jne 0x5226b2
mov dl, byte [edi]
lea eax, [edi + 1]
mov dword [ebp - 0x38], eax
test dl, dl
jns 0x5226a1
mov cl, 0x40
test cl, dl
je 0x5226a1
cmp cl, 8
jbe 0x52269e
shr cl, 1
inc eax
test dl, cl
jne 0x522692
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x38]
call fcn.0040faa0
cmp eax, 0x5c
je 0x5227c0
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov al, byte [esi]
inc esi
movzx edx, al
test al, al
jns 0x522702
mov eax, 0x40
xor ebx, ebx
mov ecx, 0x7f
test al, dl
je 0x5226df
cmp eax, 8
jbe 0x5226df
shr eax, 1
inc ebx
shr ecx, 1
test edx, eax
jne 0x5226d1
and edx, ecx
sub ebx, 1
js 0x5226ff
movzx ecx, byte [esi]
mov eax, ecx
and al, 0xc0
cmp al, 0x80
jne 0x5226ff
and ecx, 0x3f
shl edx, 6
inc esi
or edx, ecx
sub ebx, 1
jns 0x5226e6
mov ecx, dword [ebp - 0x38]
test edx, edx
je 0x522716
lea eax, [ecx + 1]
cmp edx, 0x5c
cmovne eax, ecx
mov ecx, eax
mov dword [ebp - 0x38], eax
jmp 0x5226b7
test ecx, ecx
jne 0x522787
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0041d5b0
add esp, 4
mov ecx, dword [ebp - 0x24]
or edx, 0xffffffff
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x522755
mov eax, edx
lock xadd dword [ecx], eax
test eax, eax
jne 0x522755
push ecx
call fcn.004a8172
add esp, 4
or edx, 0xffffffff
add edi, 0xfffffff8
cmp edi, 0x7a1354
je 0x522771
lock xadd dword [edi], edx
test edx, edx
jne 0x522771
push edi
call fcn.004a8172
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
mov eax, esp
mov edx, ecx
lea ecx, [ebp - 0x2c]
mov dword [eax], 0x79bff8
call fcn.005181b0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
call fcn.00518bc0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x7a135c
mov dword [esi], eax
jmp 0x52272e
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi], eax
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x52272e
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x52272e
mov ecx, dword [ebp + 8]
push str.._.__
call fcn.0041d340
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8