Function at 0x416040
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e862b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x718
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
xor eax, eax
xor edi, edi
or edi, edx
or esi, eax
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp esi, ebx
mov dword [esp + 0x72c], ebx
ja 0x4160ac
cmp edi, 0x100000
jbe 0x4160f5
mov eax, esi
mov dword [esp + 0x10], edi
and esi, 0x7fffffff
mov dword [esp + 0x14], esi
fild qword [esp + 0x10]
and eax, 0x80000000
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
sub esp, 8
lea eax, [esp + 0x24]
fchs
faddp st(1)
fmul qword [0x4f3778]
fstp qword [esp]
push str._0.1lf_MB
push eax
call fcn.00402400
add esp, 0x10
jmp 0x41615d
cmp esi, ebx
ja 0x416101
cmp edi, 0x400
jbe 0x41614a
mov eax, esi
mov dword [esp + 0x10], edi
and esi, 0x7fffffff
mov dword [esp + 0x14], esi
fild qword [esp + 0x10]
and eax, 0x80000000
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
sub esp, 8
lea ecx, [esp + 0x24]
fchs
faddp st(1)
fmul qword [0x4f3758]
fstp qword [esp]
push str._0.1lf_KB
push ecx
call fcn.00402400
add esp, 0x10
jmp 0x41615d
push edi
lea edx, [esp + 0x20]
push str._u_B
push edx
call fcn.00402400
add esp, 0xc
or esi, 0xffffffff
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
lea ecx, [esp + 0x20]
push ecx
call fcn.004b4093
add esp, 4
cmp eax, ebx
je 0x416188
mov edx, dword [eax]
mov dword [esp + 0x28], edx
jmp 0x41618c
mov dword [esp + 0x28], esi
lea eax, [esp + 0x20]
push eax
call fcn.004b4093
add esp, 4
cmp eax, ebx
je 0x4161a6
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], ecx
jmp 0x4161aa
mov dword [esp + 0x10], esi
lea edx, [esp + 0x20]
push edx
call fcn.004b4093
add esp, 4
cmp eax, ebx
je 0x4161c0
mov ebx, dword [eax + 8]
jmp 0x4161c2
mov ebx, esi
lea eax, [esp + 0x20]
push eax
call fcn.004b4093
add esp, 4
test eax, eax
je 0x4161d8
mov edi, dword [eax + 0xc]
jmp 0x4161da
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
call fcn.004b4093
add esp, 4
test eax, eax
je 0x4161f1
mov esi, dword [eax + 0x10]
inc esi
jmp 0x4161f3
xor esi, esi
lea edx, [esp + 0x20]
push edx
call fcn.004b4093
add esp, 4
test eax, eax
je 0x41620e
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x416210
xor eax, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ebx
mov ebx, dword [esp + 0x28]
push edi
push esi
push eax
mov eax, dword [0x51c0bc]
push eax
push ebx
push str._s_r_n_s:_04d__02d__02d__02d:_02d:_02d
push ecx
call fcn.00402400
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x334]
push eax
xor esi, esi
push 0x208
push ecx
mov word [esp + 0x340], si
mov dword [esp + 0x48], esi
call fcn.00449fe0
lea edx, [esp + 0x340]
push 0x2e
push edx
call fcn.004b3956
add esp, 0x40
cmp eax, esi
je 0x4162a1
cmp word [eax + 2], si
lea ecx, [eax + 2]
je 0x4162a1
nop
xor eax, eax
mov ax, word [ecx]
cmp ax, 0x61
jb 0x416299
cmp ax, 0x7a
ja 0x416299
and eax, 0xffdf
mov word [ecx], ax
add ecx, 2
cmp word [ecx], si
jne 0x416280
push 0x4110
xor eax, eax
mov dword [esp + 0x54], esi
mov ecx, 0xac
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
push 0x2b4
lea eax, [esp + 0x58]
push eax
push 0x80
lea ecx, [esp + 0x318]
or edi, 0xffffffff
push ecx
mov dword [esp + 0x68], edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [esp + 0x50]
lea eax, [ebx - 0x10]
mov dword [esp + 0x72c], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x4162fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x724]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret