Function at 0x402940
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff980
mov eax, 0x4d7ad0
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ebx, dword [ebp + 8]
call fcn.004c928c
mov dword [edi + 0x1c], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004d5778
inc dword [edi + 0x1c]
lea edx, [ebp - 0x680]
mov word [edi + 0x10], 8
push edx
lea ecx, [ebp - 0x580]
push ecx
lea eax, [ebp - 0x480]
push eax
lea edx, [ebp - 0x37c]
push edx
cmp dword [ebp + 0xc], 0
je 0x40299e
mov ecx, dword [ebp + 0xc]
jmp 0x4029a3
mov ecx, 0x4d72d9
push ecx
call fcn.004cad78
add esp, 0x14
cmp dword [ebx + 0x66c], 3
jne 0x4029d2
dec dword [edi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov eax, dword [edi]
mov dword fs:[0], eax
jmp 0x402d3d
cmp dword [ebp + 0xc], 0
sete dl
and edx, 1
test dl, dl
je 0x4029fe
dec dword [edi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [edi]
mov dword fs:[0], ecx
jmp 0x402d3d
push 0x4000
lea eax, [ebp - 0xe8]
push eax
cmp dword [ebp + 0xc], 0
je 0x402a15
mov edx, dword [ebp + 0xc]
jmp 0x402a1a
mov edx, 0x4d72da
push edx
call sub.KERNEL32.DLL_OpenFile
inc eax
jne 0x402a40
dec dword [edi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov eax, dword [edi]
mov dword fs:[0], eax
jmp 0x402d3d
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.00402d44
add esp, 8
test al, al
jne 0x402a6f
dec dword [edi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [edi]
mov dword fs:[0], ecx
jmp 0x402d3d
push 0x160
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.004c8d84
add esp, 0xc
lea edx, [ebp - 0x27c]
push 0x34
push 0
push edx
call fcn.004c8d84
add esp, 0xc
lea ecx, [ebp - 0x248]
push 0x4600
push 0x160
push ecx
push 0
cmp dword [ebp + 0xc], 0
je 0x402ab6
mov eax, dword [ebp + 0xc]
jmp 0x402abb
mov eax, 0x4d72db
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push SysReAllocStringLen
cmp dword [ebp + 0xc], 0
je 0x402ade
mov edx, dword [ebp + 0xc]
jmp 0x402ae3
mov edx, 0x4d72dc
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
je 0x402b02
lea eax, [ebp - 0x27c]
push eax
push esi
call sub.KERNEL32.DLL_GetFileInformationByHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebx + 0x634]
mov eax, dword [edx + 0x22c]
call fcn.0048e5c4
mov word [edi + 0x10], 0x14
mov esi, eax
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x680]
call fcn.004d5740
push eax
inc dword [edi + 0x1c]
lea edx, [ebp - 0x580]
lea eax, [ebp - 8]
call fcn.004d5740
inc dword [edi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [edi + 0x1c]
pop edx
call fcn.004d58f8
lea edx, [ebp - 0x10]
mov eax, esi
mov edx, dword [edx]
call fcn.0048e064
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d58a0
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d58a0
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [ebp - 0x25c]
lea edx, [esi + 8]
mov eax, ecx
neg ecx
add ecx, dword [ebp - 0x258]
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], edx
mov word [edi + 0x10], 0x20
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x14], eax
push edx
inc dword [edi + 0x1c]
call fcn.00402704
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x14]
add esp, 0xc
mov eax, dword [eax]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [edi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d58a0
lea ecx, [esi + 8]
lea edx, [ebp - 0x138]
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x18]
mov word [edi + 0x10], 0x2c
call fcn.004d5740
inc dword [edi + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [edi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d58a0
lea ecx, [esi + 8]
xor edx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x1c]
mov word [edi + 0x10], 0x38
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push ebx
mov dword [ebp - 0x1c], edx
push ecx
inc dword [edi + 0x1c]
call fcn.0040288c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [edi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004d58a0
mov word [edi + 0x10], 0x44
lea edx, [ebp - 0x37c]
lea eax, [ebp - 4]
call fcn.004d5740
inc dword [edi + 0x1c]
lea edx, [ebp - 0x480]
mov word [edi + 0x10], 8
mov word [edi + 0x10], 0x50
lea eax, [ebp - 0x20]
call fcn.004d5740
inc dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
inc dword [edi + 0x1c]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.004d58f8
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004d58d0
dec dword [edi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d58a0
dec dword [edi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d58a0
lea eax, [esi + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [ebp - 0x244]
xor edx, edx
mov eax, esi
call fcn.0048e21c
mov eax, esi
call fcn.0048e048
or eax, 0xffffffff
mov dword [ebx + 0x2f8], eax
push 0
push eax
push ebx
call fcn.00403440
add esp, 0xc
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d58a0
dec dword [edi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [edi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret