Function at 0x40ca70
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x5dc
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x5d8], eax
mov eax, dword [esp + 0x5e4]
push ebx
push ebp
mov ebp, dword [esp + 0x5e8]
push esi
push edi
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x19c]
push 0x1005
lea ecx, [esp + 0x4f4]
push eax
xor esi, esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x40cae0
mov cl, byte [esp + eax + 0x4e8]
mov byte [esp + eax + 0x2e8], cl
add eax, 1
cmp cl, bl
jne 0x40cae0
lea ecx, [esp + 0x2e8]
push ecx
call fcn.00475f60
add esp, 4
test eax, eax
je 0x40cb25
lea eax, [esp + 0x2e8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cb13
sub eax, edx
mov byte [esp + eax + 0x2e7], bl
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or edi, 0xffffffff
cmp eax, edi
je 0x40cd37
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
test byte [esp + 0x38], 0x10
mov dword [ebp + 0x990], ebx
mov dword [ebp + 0x98c], ebx
mov dword [ebp + 0x988], ebx
je 0x40cc10
mov esi, 1
mov edi, edi
mov cl, byte [esp + eax + 0x4e8]
mov byte [esp + eax + 0x3e8], cl
add eax, 1
cmp cl, bl
jne 0x40cb70
lea ecx, [esp + 0x3e8]
push ecx
call fcn.00475f60
add esp, 4
test eax, eax
jne 0x40cbb6
lea edi, [esp + 0x3e8]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, esi
cmp al, bl
jne 0x40cba3
mov dx, word [0x49ea0c]
mov word [edi], dx
xor eax, eax
jmp 0x40cbc0
mov cl, byte [esp + eax + 0x3e8]
mov byte [esp + eax + 0x2e8], cl
add eax, 1
cmp cl, bl
jne 0x40cbc0
lea edi, [esp + 0x2e8]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, esi
cmp al, bl
jne 0x40cbe0
mov ax, word [0x49ea08]
push 0x40c450
push ebp
push 1
lea ecx, [esp + 0x2f4]
push ecx
mov word [edi], ax
call fcn.004323f0
jmp 0x40cc5b
mov cl, byte [esp + eax + 0x4e8]
mov byte [esp + eax + 0x3e8], cl
add eax, 1
cmp cl, bl
jne 0x40cc10
mov edx, dword [esp + 0x54]
push 1
push ebx
push ebx
push edx
mov dword [ebp + 0x988], 1
call fcn.004814c0
mov ecx, dword [esp + 0x58]
xor edi, edi
add eax, ecx
adc edx, edi
add eax, 0x7ff
adc edx, ebx
shrd eax, edx, 0xb
shr edx, 0xb
mov dword [ebp + 0x990], eax
mov eax, dword [ebp + 0x98c]
add dword [ebp + 0x998], eax
mov eax, dword [ebp + 0x990]
add dword [ebp + 0x99c], eax
mov edx, dword [ebp + 0x988]
add dword [ebp + 0x994], edx
mov edx, dword [esp + 0x5f4]
push 0x4000
push 0x160
mov dword [esp + 0x38], eax
lea eax, [esp + 0x180]
push eax
push ebx
lea ecx, [esp + 0x3f8]
push ecx
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp + 0x19c]
mov edx, dword [esp + 0x17c]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x1006
push ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, ebx
je 0x40ce1e
mov edx, dword [ebp + 0x98c]
mov eax, dword [ebp + 0x988]
push edx
push eax
push 0x52
call fcn.0046d6b0
add esp, 0xc
lea edx, [esp + 0x2e8]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
cmp cl, bl
jne 0x40cd05
lea edi, [esp + 0x2e8]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x40cd20
mov ecx, dword [0x49e590]
mov dword [edi], ecx
jmp 0x40ce25
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x4e8]
mov byte [esp + eax + 0x3e8], cl
add eax, 1
cmp cl, bl
jne 0x40cd40
lea ecx, [esp + 0x3e8]
push ecx
call fcn.00475f60
mov eax, dword [ebp + 0x19c]
mov ecx, dword [esp + 0x5f8]
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebx
push 0x1006
mov dword [ebp + 0x990], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
xor esi, esi
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
call edi
push 0x49e5dc
push 0xc4
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], 2
call fcn.0046d6b0
add esp, 4
push eax
push 0x49e5d8
lea ecx, [esp + 0x2f4]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0x19c]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push ebx
push 0x1006
lea edx, [esp + 0x2f4]
push ecx
mov dword [esp + 0x34], edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x5e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x5dc
ret
mov byte [esp + 0x2e8], bl
mov edx, dword [ebp + 0x990]
add edx, edx
push edx
lea eax, [esp + 0x2dc]
push eax
call fcn.0046ef50
lea eax, [esp + 0x2e0]
add esp, 8
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40ce47
lea edi, [esp + 0x2e8]
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x40ce60
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
mov ecx, eax
mov eax, dword [ebp + 0x19c]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push 0x1006
lea ecx, [esp + 0x2f4]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
jmp 0x40ce05