Function at 0x4282b0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490c66
mov eax, dword fs:[0]
push eax
sub esp, 0x788
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x788], esi
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x794], ebx
mov dword [ebp - 0x78c], eax
call fcn.00404410
mov eax, dword [ebp - 0x78c]
push 0x2b4
push 0
mov dword [eax], 0
lea eax, [ebp - 0x4cc]
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x4cc]
push 0x4200
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push edi
lea ecx, [ebp - 0x790]
call fcn.00403eb0
lea ecx, [ebp - 0x790]
mov dword [ebp - 4], 0
call fcn.00427590
test al, al
jne 0x42838e
lea ecx, [ebp - 0x4c0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428370
sub ecx, edx
lea eax, [ebp - 0x4c0]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004046a0
mov eax, dword [ebx]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x428486
push edi
lea ecx, [ebp - 0x784]
call fcn.00403eb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x784]
mov esi, dword [eax - 0xc]
lea ecx, [esi - 1]
test ecx, ecx
js 0x428434
cmp ecx, esi
jg 0x428434
cmp word [eax + ecx*2], 0x5c
jne 0x428413
lea edi, [esi - 1]
test edi, edi
js 0x428434
cmp edi, esi
jge 0x428434
cmp dword [eax - 4], 1
jle 0x4283eb
push esi
lea ecx, [ebp - 0x784]
call fcn.00404470
mov eax, dword [ebp - 0x784]
xor ecx, ecx
mov word [eax + edi*2], cx
test esi, esi
js 0x428434
mov eax, dword [ebp - 0x784]
cmp esi, dword [eax - 8]
jg 0x428434
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x784]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x784]
push 0x5c
push eax
call fcn.0046e615
mov edx, dword [ebp - 0x784]
add esp, 8
test eax, eax
lea ecx, [eax + 2]
cmovne edx, ecx
test edx, edx
jne 0x42843e
xor ecx, ecx
jmp 0x428452
push 0x80070057
call fcn.00404ad0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428443
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x794]
push edx
call fcn.004046a0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x784]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428480
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x788]
mov eax, dword [ebp - 0x4c8]
test eax, eax
jg 0x4284fa
mov eax, dword [esi + 0xf04]
test eax, eax
jg 0x4284fa
push 0
push 0x24
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4284f4
push 0x2b4
lea eax, [ebp - 0x780]
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x780]
push 0x4000
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x77c]
mov dword [esi + 0xf04], eax
mov eax, dword [esi + 0xf04]
mov ecx, dword [ebp - 0x78c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
mov dword [ecx], eax
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x428524
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0xc