Function at 0x523fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e0ef
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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 - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x524052
cmp eax, 0xffffffff
je 0x524052
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00527c40
mov ebx, 1
mov byte [ebp - 0xd], bl
mov eax, dword [eax]
cmp byte [eax], 0
je 0x524056
mov byte [ebp - 0xd], 0
test bl, 1
je 0x52407d
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x52407d
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x52407d
push ecx
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x5242d2
push 0x79bf84
lea ecx, [ebp - 0x14]
call fcn.0041d340
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push ecx
push 2
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00523860
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5240d3
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5240d3
push ecx
call fcn.004a8172
add esp, 4
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x524181
push 0x5c
mov ecx, edi
call fcn.00518740
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00526f80
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
mov dword [eax], esi
lea eax, [ebp - 0x18]
push eax
call fcn.00527e80
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00527220
test al, al
mov eax, dword [ebp - 0x18]
sete byte [ebp - 0xd]
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x524146
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x524146
push ecx
call fcn.004a8172
add esp, 4
add esi, 0xfffffff8
mov byte [ebp - 4], 3
cmp esi, 0x7a1354
je 0x524169
or eax, 0xffffffff
lock xadd dword [esi], eax
test eax, eax
jne 0x524169
push esi
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0xd], 0
jne 0x5242bf
add edi, 4
cmp edi, ebx
jne 0x5240e4
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a20
push dword [ebp - 0x2c]
call fcn.004c2bdc
push 0x79bf88
lea ecx, [ebp - 0x14]
call fcn.0041d340
add esp, 4
mov dword [ebp - 4], 6
lea eax, [ebp - 0x14]
push eax
push ecx
push 1
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00523860
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5241e7
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5241e7
push ecx
call fcn.004a8172
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x524296
nop dword [eax + eax]
push 0x5c
mov ecx, edi
call fcn.00518740
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00526f80
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x1c]
mov dword [eax], esi
lea eax, [ebp - 0x18]
push eax
call fcn.00527e80
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00523fe0
test al, al
mov eax, dword [ebp - 0x18]
sete byte [ebp - 0xd]
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x524262
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x524262
push ecx
call fcn.004a8172
add esp, 4
add esi, 0xfffffff8
mov byte [ebp - 4], 8
cmp esi, 0x7a1354
je 0x524285
or eax, 0xffffffff
lock xadd dword [esi], eax
test eax, eax
jne 0x524285
push esi
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0xd], 0
jne 0x5242e8
add edi, 4
cmp edi, ebx
jne 0x524200
lea ecx, [ebp - 0x38]
call fcn.00403a20
push dword [ebp - 0x38]
call fcn.004c2bdc
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x2c]
call fcn.00403a20
push dword [ebp - 0x2c]
call fcn.004c2bdc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x38]
call fcn.00403a20
push dword [ebp - 0x38]
jmp 0x5242ca