Function at 0x59f10f
Capabilities:
Get file system object information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x308
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
call fcn.0059e580
push 1
push dword [esi + 0x60]
call fcn.0045c46f
mov eax, dword [esi + 4]
and dword [esi + 0x70], 0
push 0x4011
mov byte [esi + 0x75], 0
mov ebp, dword [eax + 0xc]
lea eax, [esp + 0x68]
push 0x2b4
push eax
push 0x80
push 0x6d2128
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0x31c]
xor edi, edi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], edi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov ecx, 0x9c
cdq
idiv ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], eax
imul eax, ebp
push eax
call fcn.0045c47c
mov ecx, dword [esp + 0x31c]
mov ebx, eax
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
idiv dword [esp + 0x48]
test eax, eax
je 0x59f484
xor edx, edx
mov dword [esp + 0x40], edx
mov eax, dword [ecx]
add eax, edx
mov dword [esp + 0x38], eax
lea esi, [eax + 0x34]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x28], esi
jb 0x59f1d4
mov esi, dword [esi]
mov dword [esp + 0x28], esi
push 0x5c
push esi
call fcn.0066ad67
and dword [esp + 0x18], 0
mov edx, esi
or dword [esp + 0x20], 0xffffffff
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], ecx
test eax, eax
je 0x59f380
lea esi, [ebx + 0x14]
mov ebx, eax
jmp 0x59f20b
mov edx, dword [esp + 0x1c]
cmp ecx, edi
je 0x59f297
cmp dword [esi + 0x14], 8
mov eax, dword [esi - 4]
mov dword [esp + 0x14], eax
jb 0x59f224
mov ecx, dword [esi]
jmp 0x59f226
mov ecx, esi
mov eax, ebx
sub eax, edx
sar eax, 1
push eax
push edx
push ecx
mov dword [esp + 0x38], eax
call fcn.0067772f
add esp, 0xc
neg eax
sbb al, al
inc al
cmp dword [esp + 0x14], 0
jne 0x59f284
test al, al
je 0x59f284
mov eax, dword [esp + 0x2c]
cmp dword [esi + 0x10], eax
jne 0x59f284
mov ecx, dword [esp + 0x38]
push 0x5c
mov eax, dword [ecx + 8]
add dword [esi + 0x18], eax
mov eax, dword [ecx + 0xc]
adc dword [esi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 2]
push eax
mov dword [esp + 0x24], eax
call fcn.0066ad67
inc dword [esp + 0x18]
mov ebx, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
add esi, ebp
inc ecx
mov dword [esp + 0x34], ecx
test ebx, ebx
jne 0x59f207
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebx, dword [esp + 0x24]
je 0x59f380
lea esi, [edi - 1]
imul esi, ebp
mov eax, dword [esp + 0x20]
add esi, ebp
mov dword [esp + 0x2c], edi
inc edi
mov dword [esp + 0x24], esi
cmp edi, eax
jbe 0x59f2d2
add eax, eax
mov dword [esp + 0x20], eax
imul eax, ebp
push eax
push ebx
call fcn.0045c52b
mov ebx, eax
push ebp
add esi, ebx
push 0
push esi
call fcn.0066c620
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004478fb
push eax
lea ecx, [esi + 0x14]
call fcn.004281d1
push 0
push 1
lea ecx, [esp + 0x54]
call fcn.004284eb
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x78]
mov dword [esi + 0xc], eax
xor al, al
cmp al, byte [edx + 0x64]
sbb eax, eax
and eax, 2
cmp dword [esp + 0x18], 0xffffffff
mov dword [esi + 8], eax
jne 0x59f34b
inc dword [ecx + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add eax, 2
push 0x5c
push eax
mov dword [esp + 0x24], eax
call fcn.0066ad67
inc dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x59f2ad
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jbe 0x59f39f
add eax, eax
mov dword [esp + 0x20], eax
imul eax, ebp
push eax
push ebx
call fcn.0045c52b
mov ebx, eax
mov dword [esp + 0x24], ebx
lea esi, [edi - 1]
imul esi, ebp
push ebp
push 0
add esi, ebx
push esi
call fcn.0066c620
add esp, 0xc
cmp dword [esp + 0x18], 0xffffffff
jne 0x59f3c1
mov eax, dword [esp + 0x30]
inc dword [eax + 0x70]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push ecx
push eax
call fcn.004295d6
push eax
lea ecx, [esi + 0x14]
call fcn.004281d1
push 0
push 1
lea ecx, [esp + 0x54]
call fcn.004284eb
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
push 0x4011
mov eax, dword [ecx + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x38], eax
xor al, al
mov dword [esi + 0x10], ecx
cmp al, byte [ecx + 0x64]
push 0x2b4
sbb eax, eax
and eax, 2
mov dword [esi + 8], eax
lea eax, [esp + 0x6c]
push eax
push 0x80
push dword [esp + 0x38]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
mov eax, dword [esp + 0x68]
jne 0x59f43d
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0x30]
cmp byte [esi + 0x75], 0
jne 0x59f455
cmp dword [esp + 0x10], 0
je 0x59f455
mov byte [esi + 0x75], 1
mov ecx, dword [esp + 0x31c]
inc dword [esp + 0x3c]
add dword [esp + 0x40], 0x9c
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
idiv dword [esp + 0x48]
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x3c], eax
jne 0x59f1b9
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 4]
imul eax, edi
imul ecx, ebp
cmp ecx, eax
jae 0x59f49e
push eax
push ebx
call fcn.0045c52b
mov ebx, eax
mov eax, edi
imul eax, ebp
add eax, ebx
lea ecx, [eax + edi*4]
mov dword [esp + 0x44], ecx
test edi, edi
je 0x59f4e6
mov esi, dword [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x2c], edi
mov edx, dword [ecx]
cmp edx, 0xffffffff
jne 0x59f4cb
and dword [ecx], 0
mov dword [eax], ecx
add eax, 4
jmp 0x59f4d7
imul edx, ebp
add edx, ebx
sub esi, 4
mov dword [ecx], edx
mov dword [esi], ecx
add ecx, ebp
sub edi, 1
jne 0x59f4ba
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x324]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x18], edi
mov dword [eax], edi
mov eax, dword [esp + 0x320]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x308
ret 0xc