Function at 0x5d29f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616a4b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x801030
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jle 0x5d2a44
cmp dword [0x800f7c], 0
je 0x5d2a3d
push esi
call fcn.00422dc0
mov dword [esi + 8], 0
push 0x801030
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0x10]
or edi, 0xffffffff
mov dword [ebp - 0x50], ebx
mov dword [ebx], 0
test ecx, ecx
je 0x5d2a78
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x5d2a78
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x14]
add ecx, 0xfffffff8
mov dword [ebp - 0x28], eax
cmp ecx, 0x7a1354
je 0x5d2a9f
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d2a9f
push ecx
call fcn.004a8172
add esp, 4
lea eax, [esi - 0x88]
mov dword [esi + 0x14], 0x7a135c
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.005faeb0
add esi, 0xc
lea ecx, [ebp - 0x70]
push esi
mov dword [ebp - 0x44], esi
call fcn.005288d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
cmp byte [eax], 0
jne 0x5d2d78
mov eax, dword [esi]
cmp byte [eax], 0
je 0x5d2d78
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
test al, 0x10
jne 0x5d2d78
lea ecx, [ebp - 0x70]
call fcn.0056df10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5d2d78
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call edx
mov edx, dword [ebx]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5d2b4b
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x5d2b4b
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d2d78
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov ecx, esi
push 0x5c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
call fcn.00518740
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00526f80
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00529ba0
mov esi, eax
push 0x7a7410
mov ecx, esi
call fcn.00518bc0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call edx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00529ba0
mov ebx, eax
push 0x7a7350
mov ecx, ebx
call fcn.00518bc0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
test eax, eax
js 0x5d2bd8
mov edx, eax
call fcn.004fc060
jmp 0x5d2be5
neg eax
mov edx, eax
call fcn.004fc060
dec eax
mov byte [eax], 0x2d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
sub ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
jle 0x5d2c2c
mov esi, dword [ebx]
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x5d2c00
sub esi, edx
lea eax, [esi + ecx]
mov ecx, ebx
push eax
call fcn.0051a030
push dword [ebp - 0x28]
add esi, dword [ebx]
push dword [ebp - 0x24]
push esi
call fcn.004bf740
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov byte [esi + eax], 0
push 0x7a7354
mov ecx, ebx
call fcn.00518bc0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
test eax, eax
js 0x5d2c4b
mov edx, eax
call fcn.004fc060
jmp 0x5d2c58
neg eax
mov edx, eax
call fcn.004fc060
dec eax
mov byte [eax], 0x2d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], eax
sub ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jle 0x5d2c9c
mov esi, dword [ebx]
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x5d2c70
sub esi, edx
lea eax, [esi + ecx]
mov ecx, ebx
push eax
call fcn.0051a030
push dword [ebp - 0x24]
add esi, dword [ebx]
push dword [ebp - 0x28]
push esi
call fcn.004bf740
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [esi + eax], 0
push str._pixels_n
mov ecx, ebx
call fcn.00518bc0
mov ecx, dword [ebp - 0x44]
call fcn.00528370
push edx
push eax
lea ecx, [ebp - 0x48]
call fcn.00523b10
add esp, 8
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00529ba0
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d2cea
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d2cea
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d2d0b
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d2d0b
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff8
cmp edx, 0x7a1354
je 0x5d2d30
mov eax, edi
lock xadd dword [edx], eax
test eax, eax
jne 0x5d2d30
push edx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005d2e20
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
push ecx
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x2c]
push eax
call fcn.0056f8d0
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5d2d78
lea eax, [ecx + 4]
lock xadd dword [eax], edi
lea eax, [edi - 1]
test eax, eax
jne 0x5d2d78
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00528870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret