Function at 0x4eb940
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ff18
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5bda40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x24]
call fcn.0051de71
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00410610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00410610
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], 0
push 1
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp + 0x14]
call fcn.00406c40
mov dword [ebp - 0x88], eax
push 0x589df8
mov edx, dword [ebp - 0x88]
push edx
call fcn.00406fe0
add esp, 8
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x54]
call fcn.004072c0
movzx eax, byte [ebp - 0x4d]
test eax, eax
je 0x4eb9f5
push 0x589dfc
lea ecx, [ebp + 0x14]
call fcn.00406a60
mov ecx, dword [ebp + 0x14]
push ecx
push 0x589e00
lea edx, [ebp - 0x2c]
push edx
call fcn.004089d0
add esp, 0xc
push 0
lea ecx, [ebp - 0x2c]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x24]
call fcn.0051deec
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4ebebf
lea ecx, [ebp - 0x24]
call fcn.0051dcc3
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.00409330
test eax, eax
je 0x4ebb3b
lea ecx, [ebp - 0x24]
call fcn.0051de32
test eax, eax
je 0x4eba53
jmp 0x4eba20
cmp dword [ebp + 8], 0
jne 0x4eba5b
jmp 0x4eba20
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.0051e0eb
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x30]
call fcn.00406980
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004072c0
lea ecx, [ebp - 0x24]
call fcn.00449630
test eax, eax
je 0x4ebac6
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 0x18]
push eax
call fcn.004068e0
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x30]
push edx
call fcn.004068e0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 4
call fcn.004eb940
add esp, 0x20
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xa0]
mov dword [ebp - 0x34], eax
jmp 0x4ebeba
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0051e0eb
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406980
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.004072c0
lea ecx, [ebp - 0x30]
call fcn.00406bb0
push 4
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00406c40
mov dword [ebp - 0xac], eax
push 0x589e0c
mov edx, dword [ebp - 0xac]
push edx
call fcn.0042beb0
add esp, 8
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x6c]
call fcn.004072c0
movzx eax, byte [ebp - 0x65]
test eax, eax
je 0x4ebeba
lea ecx, [ebp - 0x40]
call fcn.00410610
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.00410610
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.004072e0
lea ebx, [ebp - 0x3c]
lea edi, [ebp - 0x40]
mov esi, eax
call fcn.004faa90
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x3c]
call fcn.00406bb0
cmp dword [ebp - 0x38], 0
je 0x4ebea2
lea ecx, [ebp - 0x40]
call fcn.004070f0
movzx ecx, al
test ecx, ecx
jne 0x4ebea2
push 0x5c
lea ecx, [ebp - 0x40]
call fcn.00406b60
add eax, 1
push eax
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x40]
call fcn.00406c00
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406980
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.004072c0
lea ecx, [ebp - 0x40]
call fcn.00406bb0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
jmp 0x4ebc80
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp + 0xc]
call fcn.004478e0
cmp dword [ebp - 0x48], eax
jge 0x4ebcc5
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00408a80
push eax
call fcn.00406fa0
add esp, 8
movzx edx, al
test edx, edx
je 0x4ebcc3
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x20]
mov dword [edx], ecx
mov dword [ebp - 0x44], 1
jmp 0x4ebcc5
jmp 0x4ebc77
cmp dword [ebp - 0x44], 0
je 0x4ebdac
mov dword [ebp - 0x4c], 0
jmp 0x4ebce1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x10]
call fcn.004478e0
cmp dword [ebp - 0x4c], eax
jge 0x4ebdac
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00408a80
mov ecx, eax
call fcn.004072e0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406ae0
cmp eax, 0xffffffff
je 0x4ebda7
mov dword [ebp - 0x44], 0
cmp dword [ebp + 0x1c], 0
je 0x4ebda5
push 0
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x30]
push edx
call fcn.004068e0
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x78]
push eax
call fcn.004ed180
add esp, 0x10
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xc0]
call fcn.004072e0
push eax
call fcn.004ecfd0
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78]
call fcn.004072c0
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x4ebdac
jmp 0x4ebcd8
cmp dword [ebp - 0x44], 0
je 0x4ebea2
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.00449630
test eax, eax
je 0x4ebdf1
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp + 0x18]
call fcn.004072e0
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
mov esi, eax
call fcn.004fa9c0
add esp, 4
test eax, eax
je 0x4ebea2
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp + 0x1c], 0
je 0x4ebea2
push 0
push 1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
lea eax, [ebp - 0x30]
push eax
call fcn.004068e0
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004ed180
add esp, 0x10
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xcc]
call fcn.004072e0
push eax
call fcn.004ecfd0
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.004072c0
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.004072c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004072c0
jmp 0x4eba20
lea ecx, [ebp - 0x24]
call fcn.0051dbdd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004072c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004072c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0051de9a
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004072c0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret