Function at 0x446260
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x599f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x314], eax
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x4462cb
xor eax, eax
jmp 0x44682f
push ecx
lea ecx, [esp + 0x24]
call fcn.0040c2d0
mov dword [esp + 0x330], 0
or ecx, 0xffffffff
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
je 0x446805
cmp dword [esi + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0
je 0x446805
push dword [esi + 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jae 0x446323
push ecx
mov ecx, esi
call fcn.00446ee0
push dword [esp + 0x18]
lea eax, [esp + 0x3c]
push dword [esp + 0x18]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push eax
call fcn.00446860
lea eax, [esp + 0x38]
mov byte [esp + 0x330], 1
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00419ac0
mov esi, dword [eax]
mov eax, dword [esp + 0x2c]
cmp esi, dword [eax]
je 0x446377
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x446377
push ecx
mov ecx, eax
call fcn.00447010
mov esi, dword [esi + 0x14]
jmp 0x4467da
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x20], 0
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esp + 0x30], 0xffffffff
je 0x44644c
push dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
mov esi, esp
mov dword [esp + 0x2c], esp
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x338], 2
call fcn.0045e090
mov ecx, eax
mov byte [esp + 0x338], 1
call fcn.0045e4a0
mov esi, eax
test esi, esi
je 0x4463f0
call fcn.0045e090
push esi
call fcn.0045e550
mov esi, eax
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
cdq
sub eax, edx
movdqa xmmword [esp + 0x44], xmm0
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov dword [esp + 0x54], 0
sar eax, 1
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_CreateIconIndirect]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4464e9
call fcn.0040a210
push 0x10
push 1
cmp dword [eax + 4], 2
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
jne 0x446471
push 0x100
push 0x100
jmp 0x446479
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x40]
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_PrivateExtractIconsW]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4465a6
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x14]
cmp edx, eax
cmove eax, ecx
test edx, edx
mov ecx, eax
mov dword [esp + 0x14], eax
cmovne ecx, edx
mov dword [esp + 0x10], ecx
cmp edx, ecx
je 0x4464e2
push edx
call esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4464ed
push eax
call esi
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4465a6
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
cmp edx, eax
cmove eax, ecx
test edx, edx
mov ecx, eax
mov dword [esp + 0x1c], eax
cmovne ecx, edx
mov dword [esp + 0x10], ecx
cmp edx, ecx
je 0x446548
test edx, edx
je 0x446540
push edx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], 0
cmp eax, ecx
je 0x446555
push eax
call esi
mov ecx, dword [esp + 0x10]
jmp 0x44655d
mov dword [esp + 0x1c], 0
test ecx, ecx
jne 0x4465a6
push 0x2b0
push ecx
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], ecx
push eax
call fcn.00559380
add esp, 0xc
lea eax, [esp + 0x64]
push 0x110
push 0x2b4
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4465a6
xor esi, esi
jmp 0x4467da
call fcn.00425b60
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.0040c2d0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x330], 3
push dword [esp + 0x10]
push 0xffffffffffffffff
push dword [eax + 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push eax
call fcn.00419a60
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 8
call fcn.00447520
mov dword [eax], 1
test esi, esi
jne 0x446640
cmp dword [esp + 0x24], esi
jne 0x446640
mov edi, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
jmp 0x446763
push 0x5b5504
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.00551d79
add esp, 8
test eax, eax
jne 0x4466dd
lea ecx, [esp + 0x24]
call fcn.0040b840
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x334], 4
call fcn.0040c2d0
lea ecx, [esp + 0x40]
call fcn.0040b840
lea eax, [esp + 0x40]
mov byte [esp + 0x330], 6
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
call fcn.0044d330
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4466ba
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b7d0
lea ecx, [esp + 0x40]
call fcn.0040c450
lea ecx, [esp + 0x14]
call fcn.0040c450
lea ecx, [esp + 0x24]
mov byte [esp + 0x330], 3
call fcn.0040c450
xor eax, eax
push 0x206
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call fcn.00559380
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x64]
push dword [ebp + 0x20]
push 1
push eax
call fcn.004489b0
lea ecx, [esp + 0x70]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x446720
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446720
sub ecx, edx
sar ecx, 1
jne 0x446750
lea ecx, [esp + 0x64]
sub ecx, edi
jmp 0x446740
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x446740
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x64]
push ecx
mov ecx, esp
push eax
call fcn.0040c2d0
mov ecx, esi
call fcn.00425cd0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4467a4
mov ecx, eax
call fcn.00425b60
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push dword [eax + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
call esi
mov dword [esp + 0x1c], 0
jmp 0x4467bf
mov eax, dword [esp + 0x2c]
push 0
push dword [eax + 0xa0]
push dword [eax + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push dword [esp + 0x10]
call esi
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
call fcn.0040c450
mov byte [esp + 0x330], 0
or ecx, 0xffffffff
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x446800
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
jmp 0x446807
xor esi, esi
mov dword [esp + 0x330], 0xffffffff
mov edi, dword [esp + 0x20]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44682d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0x1c