Function at 0x413fb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad665
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x620024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0044c4f3
mov byte [ebp - 4], 1
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x4141ee
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x38]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x24], edi
call fcn.00405670
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.0041e3c0
add esp, 4
or ebx, 0xffffffff
test al, al
je 0x414191
mov eax, dword [ebp - 0x30]
xor edi, edi
test eax, eax
jle 0x41417b
nop dword [eax + eax]
test edi, edi
js 0x4141f8
cmp edi, eax
jge 0x4141f8
mov eax, dword [ebp - 0x34]
lea ebx, [eax + edi*4]
push 0x5c
push dword [ebx]
call fcn.00587ca4
mov edx, eax
add esp, 8
test edx, edx
jne 0x41407d
or edx, 0xffffffff
jmp 0x414081
sub edx, dword [ebx]
sar edx, 1
cmp edi, dword [ebp - 0x30]
jge 0x4141f8
mov eax, dword [ebp - 0x34]
inc edx
lea ecx, [eax + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00416150
mov byte [ebp - 4], 3
lea edx, [esi - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
lea ebx, [eax - 0x10]
cmp ebx, edx
je 0x414103
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x4140f4
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4140f4
push ebx
call fcn.00405670
add esp, 4
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4140ec
mov esi, dword [ebp - 0x20]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x414103
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00402d30
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41411c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, dword [ebp - 0x30]
jge 0x4141f8
mov eax, dword [ebp - 0x34]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
jne 0x41414e
cmp edi, dword [ebp - 0x30]
jge 0x4141f8
mov eax, dword [ebp - 0x34]
push 1
push 1
push esi
push dword [eax + edi*4]
push 1
jmp 0x414164
cmp edi, dword [ebp - 0x30]
jge 0x4141f8
mov eax, dword [ebp - 0x34]
push 1
push 1
push esi
push dword [eax + edi*4]
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040bd10
mov eax, dword [ebp - 0x30]
inc edi
cmp edi, eax
jl 0x414050
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.00409b70
mov ecx, dword [ebp - 0x18]
call fcn.0040e4b0
mov byte [ebp - 0xd], 1
jmp 0x414195
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4141b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.0044c50a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4141d7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
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
push 0x80004005
call fcn.00403300
call fcn.004498c5
int3