Function at 0x41fa80
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x539ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab980]
mov dword [esp + 0x168], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
push 1
push 0x5c
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.0050dd17
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x178]
mov byte [esp + 0x170], 3
call fcn.0050e22b
mov esi, dword [esp + 0x1c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
or ebp, 0xffffffff
cmp dl, bl
jne 0x41fb18
test cl, cl
je 0x41fb14
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41fb18
add eax, 2
add esi, 2
test cl, cl
jne 0x41faed
xor eax, eax
jmp 0x41fb1c
sbb eax, eax
sbb eax, ebp
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 2
call fcn.005128e4
test bl, bl
je 0x41fb8a
push 0x5c
lea ecx, [esp + 0x174]
call fcn.0050e31f
test eax, eax
jl 0x41fba5
inc eax
lea ecx, [esp + 0x170]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x16c], 4
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call fcn.005128e4
mov ecx, dword [esp + 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, ebp
setne dl
mov eax, edx
test eax, eax
jne 0x41fbe4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005128e4
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, 3
jmp 0x41fdcf
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x178]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 5
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call fcn.005128e4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0050e31f
test eax, eax
jge 0x41fc4c
mov ecx, dword [esp + 0x174]
lea edx, [esp + 0x170]
push edx
call fcn.00512a1d
jmp 0x41fd98
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 6
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call fcn.005128e4
mov esi, dword [esp + 0x174]
lea edx, [esp + 0x18]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00512659
call fcn.0041fa80
mov edi, eax
add esp, 8
test edi, edi
je 0x41fce2
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005128e4
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, edi
jmp 0x41fdcf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebp
jne 0x41fd3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005128e4
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, esi
jmp 0x41fdcf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x1c]
push edx
push esi
push eax
call fcn.00512b79
push 0x5c
lea ecx, [esp + 0x18]
mov bl, 7
push eax
push ecx
mov byte [esp + 0x174], bl
call fcn.0050dd7d
push eax
mov ecx, esi
mov byte [esp + 0x16c], 8
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], bl
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 2
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005128e4
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], ebp
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret