Function at 0x415760
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444f4f
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x454100]
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 edi, ecx
mov esi, dword [ebp + 0xc]
or edx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2d8], edx
movzx ecx, word [esi]
test cx, cx
je 0x4157c9
lea esp, [esp]
cmp cx, 0x2e
jne 0x4157b8
mov edx, eax
movzx ecx, word [esi + eax*2 + 2]
inc eax
test cx, cx
jne 0x4157b0
mov dword [ebp - 0x2d8], edx
mov ebx, dword [ebp + 8]
test bl, 0x10
jne 0x4159cb
test edx, edx
js 0x4159cb
lea ecx, [edi + 0x18]
test ebx, 0x800
jne 0x4157eb
lea ecx, [edi + 0xc]
mov eax, dword [ecx + 4]
lea esi, [esi + edx*2]
add esi, 2
mov dword [ebp - 0x2e4], ecx
xor edx, edx
mov dword [ebp - 0x2e0], esi
mov dword [ebp - 0x2e8], edx
mov dword [ebp - 0x2ec], eax
test eax, eax
je 0x415865
lea esi, [edx + eax]
mov eax, dword [ecx]
shr esi, 1
mov eax, dword [eax + esi*4]
push dword [eax]
push dword [ebp - 0x2e0]
call fcn.0041f990
add esp, 8
test eax, eax
je 0x4158da
jns 0x415846
mov edx, dword [ebp - 0x2e8]
mov eax, esi
mov dword [ebp - 0x2ec], eax
jmp 0x415855
mov eax, dword [ebp - 0x2ec]
lea edx, [esi + 1]
mov dword [ebp - 0x2e8], edx
mov ecx, dword [ebp - 0x2e4]
cmp edx, eax
jne 0x415812
mov esi, dword [ebp - 0x2e0]
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x4158ed
mov dword [ebp - 0x2e8], edx
add eax, 0xffffffd0
cmp ax, 9
ja 0x415889
movzx eax, word [esi + ecx*2 + 2]
inc ecx
test ax, ax
jne 0x415875
test ecx, ecx
je 0x4158ed
cmp word [esi + ecx*2], 0
jne 0x4158ed
cmp dword [edi + 0x28], 0
jne 0x4158d2
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0xffffffff
push eax
push 0x20
push str.__FILE__.001
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2d0]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], 1
mov eax, dword [edi + 0x24]
jmp 0x415b49
mov ebx, dword [ebp - 0x2e4]
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0xc]
jmp 0x415b49
lea ecx, [ebp - 0x20]
call fcn.0041f130
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041f260
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d4]
push 0x4010
push 0x2b4
push eax
mov eax, dword [ebp - 0x2d8]
and ebx, 0x800
or ebx, 0x20
mov dword [ebp - 0x2d0], 0xffffffff
push ebx
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x2d0]
test eax, eax
jne 0x41594d
or esi, 0xffffffff
mov ebx, dword [ebp - 0x2e4]
mov dword [ebp - 0x14], esi
cmp dword [ebx + 4], 0x10000
jae 0x4159b9
mov ecx, ebx
call fcn.00402770
push 0x10
call fcn.00440383
mov esi, eax
add esp, 4
mov dword [ebp - 0x2dc], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0041efc0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2e8]
mov dword [esi + 0xc], ecx
mov eax, dword [ebx]
lea ecx, [eax + edi*4]
mov eax, dword [ebx + 4]
sub eax, edi
shl eax, 2
push eax
push ecx
lea eax, [ecx + 4]
push eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx]
add esp, 0xc
mov dword [eax + edi*4], esi
inc dword [ebx + 4]
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.0044037e
add esp, 4
mov eax, esi
jmp 0x415b49
mov dword [ebp - 0x2d8], 0
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
je 0x4159fd
mov edx, dword [edi]
lea ecx, [eax + esi]
shr ecx, 1
cmp ebx, dword [edx + ecx*8]
je 0x415a90
jae 0x4159f4
mov eax, ecx
jmp 0x4159f7
lea esi, [ecx + 1]
mov edx, dword [edi]
cmp esi, eax
jne 0x4159e0
mov dword [ebp - 0x2d0], 0xffffffff
mov eax, ebx
test ebx, ebx
jne 0x415a12
mov eax, 0x20
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2d4]
push ecx
push eax
push str.__DIR__
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2e0], ecx
test eax, eax
jne 0x415a48
or ecx, 0xffffffff
mov dword [ebp - 0x2e0], ecx
mov eax, dword [edi + 4]
cmp eax, 0x10000
jb 0x415a9b
cmp ebx, 0x8000
jb 0x415a9b
test ecx, ecx
jns 0x415b47
mov ecx, dword [ebp - 0x2d8]
and bl, 0x10
movzx ebx, bl
neg ebx
sbb ebx, ebx
inc ecx
and ebx, 0xfffffff0
mov dword [ebp - 0x2d8], ecx
add ebx, 0x20
cmp ecx, 2
jb 0x4159d5
or eax, 0xffffffff
jmp 0x415b49
mov eax, dword [edi]
mov eax, dword [eax + ecx*8 + 4]
jmp 0x415b49
mov ecx, dword [edi + 8]
cmp eax, ecx
jne 0x415b1a
cmp ecx, 0x7fffffff
jae 0x415b67
mov eax, ecx
mov edx, SysReAllocString
shr eax, 2
sub edx, ecx
inc eax
cmp eax, edx
jbe 0x415ac1
mov eax, edx
add eax, ecx
mov ecx, 8
mov dword [ebp - 0x2d8], eax
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.004403c1
mov ecx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0x2dc], eax
test ecx, ecx
je 0x415aff
shl ecx, 3
push ecx
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [edi]
call fcn.0044037e
mov eax, dword [ebp - 0x2dc]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x2d8]
mov dword [edi + 8], eax
mov eax, dword [edi]
lea ecx, [eax + esi*8]
mov eax, dword [edi + 4]
sub eax, esi
shl eax, 3
push eax
push ecx
lea eax, [ecx + 8]
push eax
call sub.msvcrt.dll_memmove
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [ebp - 0x2e0]
mov dword [eax + esi*8], ebx
mov dword [eax + esi*8 + 4], ecx
inc dword [edi + 4]
mov eax, ecx
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.00440370
mov esp, ebp
pop ebp
ret 8
push 0x451eec
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x7e5
push eax
call sub.msvcrt.dll__CxxThrowException
int3