Function at 0x4037d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42bb91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x300
mov eax, dword [0x43a15c]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0x300], eax
mov eax, dword [esi + 0xc0]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x403a41
call fcn.004233ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [esp + 0x314], ebx
jne 0x4039e8
push str._DIR_
lea eax, [esp + 0x1c]
push 0x42e2cc
push eax
call fcn.00402f30
add esp, 0xc
push 0x42e2c8
call fcn.004100f9
add esp, 4
push eax
push 0x42e2c8
lea ecx, [esp + 0x20]
call fcn.00402c60
mov eax, dword [esi + 0x8c]
push ebx
push ebx
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x9d10]
inc ecx
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0xb
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0xf000
mov dword [esp + 0x30], 0x1000
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test eax, eax
jle 0x4038d7
lea esp, [esp]
lea edi, [eax - 1]
mov eax, dword [esi + 0x9d10]
push edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, edi
test eax, eax
jg 0x4038c0
call fcn.00427e23
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push 3
push str.shell32.dll
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov edx, dword [esi + 0x9d10]
push eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, eax
je 0x403a48
mov edx, dword [esi + 0x8c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x104d
push edx
mov dword [esp + 0x44], 0x42d7c8
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
lea ebx, [esi + 0x70]
push 0
mov ecx, ebx
call fcn.0041dec2
push 0x42e2a8
push 1
push 0
mov ecx, ebx
call fcn.0041de31
push 0x42e2a0
push 2
push 0
mov ecx, ebx
call fcn.0041de31
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + edi*4]
push edx
lea ecx, [esp + 0x10]
call fcn.004017a0
push 0x42e29c
push str._DIR_
lea ecx, [esp + 0x14]
mov byte [esp + 0x31c], 1
call fcn.00402d20
mov eax, dword [esp + 0xc]
push eax
push 0x3f3
mov ecx, esi
call fcn.0041f3a2
mov ecx, eax
call fcn.0041f47b
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov ebx, 1
mov byte [esp + 0x314], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x403a60
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [esp + 0x1c]
push 0x42e2cc
push eax
call fcn.00402f30
mov edi, dword [esp + 0x24]
add esp, 0xc
push str._DIR_
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403850
lea eax, [edi - 0x10]
mov dword [esp + 0x314], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x403d32
push 0x42e294
push 0x3f3
mov ecx, esi
call fcn.0041f3a2
mov ecx, eax
call fcn.0041f47b
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xc0]
lea eax, [ecx*4]
mov dword [esp + 0x14], eax
mov eax, dword [eax + edx]
test eax, eax
je 0x403b8d
lea ecx, [esi + ecx*4 + 0xc4]
mov dword [esp + 0xc], ecx
jmp 0x403a90
push str._DIR_
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403b8d
push 0x4111
push 0x2b4
mov ecx, 0xad
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc0]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x40], 0x42d7c8
mov dword [esp + 0x30], ebx
mov edx, dword [ecx + eax]
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x9d10]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [eax], edx
mov edx, dword [esi + 0x8c]
push 0x104d
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
lea edi, [esi + 0x70]
push ebx
mov ecx, edi
call fcn.0041dec2
mov ecx, dword [esi + 0xc0]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx]
push eax
push 1
push ebx
mov ecx, edi
call fcn.0041de31
push 0x42e28c
push 2
push ebx
mov ecx, edi
call fcn.0041de31
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc0]
inc eax
mov dword [esp + 0x10], eax
shl eax, 2
add edi, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax + ecx]
inc ebx
test eax, eax
mov dword [esp + 0xc], edi
jne 0x403a90
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 0xc0]
lea eax, [edi*4]
mov ecx, dword [eax + edx]
mov dword [esp + 0x14], eax
add eax, edx
test ecx, ecx
je 0x403d04
lea ecx, [esi + edi*4 + 0xc4]
mov dword [esp + 0x1c], ecx
lea ebx, [ebx]
mov edx, dword [eax]
push str._DIR_
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x403be7
mov eax, dword [esp + 0x1c]
inc edi
add eax, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
jmp 0x403ce8
mov eax, dword [esi + 0xc0]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax]
push edx
lea ecx, [esp + 0x10]
call fcn.004017a0
mov eax, dword [esp + 0x18]
push 0x42d7c8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x31c], 2
call fcn.00402d20
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x403c3d
push 0x5c
push eax
call fcn.00410d77
add esp, 8
test eax, eax
je 0x403c3d
sub eax, dword [esp + 0xc]
sar eax, 1
test eax, eax
jge 0x403cae
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0
mov dword [edx], ecx
mov ecx, dword [esi + 0x8c]
push 0x104d
push ecx
mov dword [esp + 0x44], 0x42d7c8
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
push edx
push 0
push 0
push 0
push 0
push 4
push 0
lea edi, [esi + 0x70]
push ebx
mov ecx, edi
call fcn.0041dec2
mov eax, dword [esp + 0xc]
push eax
push 1
push ebx
mov ecx, edi
call fcn.0041de31
push 0x42e2a0
push 2
push ebx
mov ecx, edi
call fcn.0041de31
inc ebx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add edx, 4
inc edi
add eax, 0xfffffff0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
mov byte [esp + 0x314], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0xc0]
lea eax, [edi*4]
mov dword [esp + 0x14], eax
add eax, ecx
cmp dword [eax], 0
jne 0x403bc0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x314], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x30c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x304]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004100eb
mov esp, ebp
pop ebp
ret 8