Function at 0x406220
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x2a4
test eax, eax
push ebx
push esi
mov esi, dword [esp + 0x2b0]
push edi
jne 0x406244
cmp esi, dword [0x41e530]
je 0x4064c4
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x18]
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
mov eax, dword [0x41e524]
mov dword [0x41e530], esi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, dword [esp + 0x2bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40628c
mov ecx, dword [0x41e648]
push 0
push 0
push 0x1042
push ecx
call ebx
mov dword [esp + 0xc], eax
mov edx, dword [0x41e648]
push 0
push 0
push 0x1009
push edx
call ebx
push esi
call sub.procs.dll_GetNumberOfModules
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4064c4
push 0x2d0
push 0x41e780
push esi
call sub.procs.dll_GetModuleHandleList
test eax, eax
jne 0x4062d0
pop edi
pop esi
pop ebx
add esp, 0x2a4
ret
xor esi, esi
test edi, edi
jbe 0x40646f
push ebp
mov ebp, 0x41e780
mov ecx, dword [ebp]
mov edx, dword [esp + 0x2b8]
lea eax, [esp + 0x50]
push 0x104
push eax
push ecx
push edx
mov dword [esp + 0x30], esi
call sub.procs.dll_GetModulePath
mov edi, eax
test edi, edi
jne 0x406315
lea eax, [esp + 0x50]
push 0x41c018
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp]
mov eax, dword [esp + 0x2b8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call sub.procs.dll_GetModuleSize
test eax, eax
jne 0x406333
mov dword [esp + 0x14], eax
test edi, edi
je 0x40638e
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x154]
push 0x101
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x158]
push 0x160
push ecx
lea edx, [esp + 0x5c]
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x154]
test eax, eax
je 0x40638e
push eax
mov eax, dword [0x41e524]
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x4063b0
mov ecx, dword [0x41e75c]
push 0
push 0x8c
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov edx, dword [0x41e524]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [0x41e648]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x58]
push 0x1007
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], esi
call ebx
mov eax, dword [esp + 0x24]
mov edx, dword [ebp]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [str._08lX]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call edi
mov eax, dword [0x41e648]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0
push 0x1006
push eax
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [str._08lX]
inc eax
mov dword [esp + 0x24], eax
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call edi
mov edx, dword [0x41e648]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x1006
push edx
call ebx
mov eax, dword [esp + 0x18]
inc esi
add ebp, 4
cmp esi, eax
jb 0x4062e0
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4064c4
mov ecx, dword [esp + 0x2bc]
test ecx, ecx
je 0x4064c4
push 0
push eax
mov eax, dword [0x41e648]
push 0x1013
push eax
call ebx
mov edx, dword [esp + 0xc]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x41e648]
push ecx
push edx
push 0x102b
push eax
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2a4
ret