Function at 0x41b1c0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5f2920
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x665ebc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x34], esi
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x14]
push edx
call eax
mov cl, 1
lea edx, [esp + 0x34]
mov eax, ebp
mov dword [esp + 0x2c], esi
call fcn.0041a540
mov byte [esp + 0x2c], 1
cmp dword [ebp + 0x40], esi
je 0x41b35f
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x34]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41b259
cmp eax, dword [esi]
jne 0x41b259
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41b28d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41b35a
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0059beab
add esp, 0x10
mov edx, dword [esp + 0x1c]
push edx
add edi, 0x10
push 0xffffffffffffffff
mov esi, ebp
mov dword [ebx], edi
call fcn.0041bae0
mov eax, dword [ebp + 0x40]
mov esi, dword [esp + 0x34]
add eax, 4
mov eax, dword [eax]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x41b2fd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41b2ef
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x41b2ef
push ecx
call fcn.004022d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41b2e6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x34], ebx
jmp 0x41b2fd
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004021e0
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x1c]
call fcn.00418ad0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x41b35f
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
je 0x41b35f
mov dword [esp + 0x18], 2
jmp 0x41b227
call fcn.004022b0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.004152b0
test eax, eax
jne 0x41b3b9
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.004022d0
mov esi, dword [esp + 0x3c]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41b41f
cmp dword [ebp + 0x40], 0
jne 0x41b3dc
mov eax, dword [esp + 0x34]
call fcn.00419760
test eax, eax
je 0x41b3dc
mov ecx, dword [esp + 0x34]
push 0
push 1
call fcn.00419a70
add esp, 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
call fcn.00419cc0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
push eax
call fcn.004022d0
mov esi, dword [esp + 0x48]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b42b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8