Function at 0x5d8e20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6174bc
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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 - 0x14], esi
mov dword [ebp - 0x1c], 0
lea ebx, [esi + 0xac]
mov eax, dword [ebp + 8]
or edi, 0xffffffff
mov byte [ebp - 0xd], 0
mov edx, 1
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
cmp dword [ebx], eax
je 0x5d9072
push eax
push dword [ebx]
call fcn.0041c700
add esp, 8
test eax, eax
je 0x5d906d
mov ecx, dword [esi + 0xcc]
mov byte [ebp - 0xd], 1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
lea edi, [esi - 8]
cmp edi, 0x7a1354
je 0x5d8eb4
mov eax, 1
lock xadd dword [edi], eax
mov dword [ebp - 4], 0
cmp byte [esi], 0
jne 0x5d8ef2
push 0x79cfc0
lea ecx, [ebp - 0x1c]
call fcn.0041d5b0
mov esi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x20], esi
cmp edi, 0x7a1354
je 0x5d8ef2
or eax, 0xffffffff
lock xadd dword [edi], eax
test eax, eax
jne 0x5d8ef2
push edi
call fcn.004a8172
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ecx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xb8]
push ecx
push 1
push esi
lea ecx, [ebp - 0x34]
call fcn.005147b0
test eax, eax
jns 0x5d9019
add ebx, 0xd8
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.005a33a0
sub eax, 1
mov dword [ebp - 0x1c], eax
js 0x5d8fdd
push eax
mov ecx, ebx
call fcn.005a3410
test eax, eax
je 0x5d8f87
mov eax, dword [eax]
lea edx, [eax - 8]
cmp edx, 0x7a1354
je 0x5d8f83
mov ecx, 1
lock xadd dword [edx], ecx
mov edi, eax
jmp 0x5d8f8e
mov eax, 0x7a135c
mov edi, eax
mov ecx, edi
cmp edi, esi
je 0x5d8fa8
push esi
push eax
call fcn.0041c700
add esp, 8
mov ecx, edi
test eax, eax
je 0x5d8fa8
xor bl, bl
jmp 0x5d8fac
mov bl, 1
mov edi, ecx
add edi, 0xfffffff8
cmp edi, 0x7a1354
je 0x5d8fcb
or eax, 0xffffffff
lock xadd dword [edi], eax
test eax, eax
jne 0x5d8fcb
push edi
call fcn.004a8172
add esp, 4
test bl, bl
jne 0x5d9019
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x1c], eax
jns 0x5d8f61
mov ecx, ebx
call fcn.005a33a0
cmp byte [esi], 0
lea edx, [eax + 2]
je 0x5d9019
test edx, edx
je 0x5d9019
push 0
lea ecx, [ebx + 0xc8]
push 1
push ecx
mov eax, esp
lea edi, [esi - 8]
mov dword [eax], esi
cmp edi, 0x7a1354
je 0x5d9013
mov eax, 1
lock xadd dword [edi], eax
push edx
call fcn.005a7880
lea ecx, [ebp - 0x34]
call fcn.00403a20
push dword [ebp - 0x34]
call fcn.004c2bdc
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00403a20
push dword [ebp - 0x40]
call fcn.004c2bdc
add esi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
add esp, 4
or edi, 0xffffffff
cmp esi, 0x7a1354
je 0x5d9067
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x5d9067
push esi
call fcn.004a8172
add esp, 4
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5d908d
mov eax, edx
lock xadd dword [ecx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xchg dword [ebx], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5d90ad
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d90ad
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [esi + 0xa0]
push 1
push 1
push ebx
call fcn.005dad90
push 0
push 0x7fa71c
push 0x7f992c
push 0
push dword [esi + 0xcc]
call fcn.004bf54d
add esp, 0x14
test eax, eax
je 0x5d90e4
mov ecx, eax
call fcn.005d3090
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax - 8]
cmp esi, 0x7a1354
je 0x5d90fd
mov ecx, 1
lock xadd dword [esi], ecx
mov dword [ebp - 4], 3
cmp byte [eax], 0
jne 0x5d913a
push 0x79cfc0
lea ecx, [ebp - 0x24]
call fcn.0041d5b0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
cmp esi, 0x7a1354
je 0x5d913a
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x5d913a
push esi
call fcn.004a8172
add esp, 4
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 8]
lea ecx, [esi + 0xd8]
push ecx
push eax
call fcn.005a2d30
mov esi, dword [esi + 0x5a8]
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00523ef0
mov ebx, 1
mov dword [ebp - 0x1c], ebx
mov edx, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 4
test al, 0x10
je 0x5d91c3
cmp eax, 0xffffffff
je 0x5d91c3
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.00523ef0
mov ecx, dword [ebp - 0x18]
mov ebx, 3
mov dword [ebp - 4], 6
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x5d91c3
push ecx
push dword [eax]
call fcn.0041c700
add esp, 8
test eax, eax
je 0x5d91c3
mov al, 1
jmp 0x5d91c5
xor al, al
push eax
mov ecx, esi
call fcn.005fac60
test bl, 2
je 0x5d91f3
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d91f3
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d91f3
push ecx
call fcn.004a8172
add esp, 4
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d921b
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d921b
push ecx
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x5d92c7
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov edx, ebx
call fcn.00494d70
mov eax, dword [ebx + 0xc4]
lea ecx, [ebx + 0xbc]
mov dword [ebp - 0x54], ecx
add ecx, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
mov byte [ebp - 0x44], 1
mov dword [ecx], eax
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x5d929d
cmp dword [esi + 8], 0
je 0x5d929d
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jle 0x5d929d
mov edx, dword [ebp - 0x54]
dec ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x50], ecx
cmp ecx, eax
jl 0x5d9290
lea ecx, [eax - 1]
mov eax, ecx
mov dword [ebp - 0x50], ecx
shr eax, 0x1f
xor al, 1
je 0x5d929d
mov eax, dword [edx]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x5d9262
cmp byte [ebp - 0x44], 0
je 0x5d92ab
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
test esi, esi
je 0x5d92c7
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
lea eax, [ecx - 1]
test eax, eax
jne 0x5d92c7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x5d92e5
lock xadd dword [eax], edi
test edi, edi
jne 0x5d92e5
push eax
call fcn.004a8172
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 4