Function at 0x4da550
Capabilities:
Get file system object information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bf4d
mov eax, dword fs:[0]
push eax
mov eax, 0x13c4
call fcn.004e1be0
mov eax, dword [0x54e938]
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x13ac], esi
cmp dword [esi + 0xf4], edi
jne 0x4da59e
mov eax, 0x80004005
jmp 0x4dac38
cmp dword [esi + 0x64], edi
jne 0x4da5aa
xor eax, eax
jmp 0x4dac38
mov dword [ebp - 0x13c4], edi
mov dword [ebp - 0x13c0], edi
mov dword [ebp - 0x13bc], edi
push 1
xor eax, eax
push 0x52843c
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1048], 7
mov dword [ebp - 0x104c], edi
mov word [ebp - 0x105c], ax
call fcn.00406300
lea ecx, [ebp - 0x13c4]
push ecx
lea edx, [ebp - 0x105c]
push edx
add esi, 0x54
push esi
mov byte [ebp - 4], 1
call fcn.00418bb0
add esp, 0xc
cmp dword [ebp - 0x1048], 8
mov esi, eax
mov byte [ebp - 4], 0
jb 0x4da626
mov eax, dword [ebp - 0x105c]
push eax
call fcn.00406ec9
add esp, 4
xor ebx, ebx
cmp esi, edi
jbe 0x4dac02
mov dword [ebp - 0x13a4], edi
mov dword [ebp - 0x13b0], esi
mov eax, dword [ebp - 0x13a4]
add eax, dword [ebp - 0x13c4]
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x105c], cx
push eax
lea ecx, [ebp - 0x105c]
mov dword [ebp - 0x1048], 7
mov dword [ebp - 0x104c], edi
call fcn.00406960
mov byte [ebp - 4], 2
cmp dword [ebp - 0x104c], edi
jne 0x4da6a1
cmp dword [ebp - 0x1048], 8
mov byte [ebp - 4], 0
jb 0x4dabef
mov edx, dword [ebp - 0x105c]
push edx
call fcn.00406ec9
add esp, 4
jmp 0x4dabef
push edi
lea eax, [ebp - 0x105c]
push edi
push eax
call fcn.00417120
add esp, 0xc
test al, al
jne 0x4da6da
cmp dword [ebp - 0x1048], 8
mov byte [ebp - 4], al
jb 0x4dabef
mov ecx, dword [ebp - 0x105c]
push ecx
call fcn.00406ec9
add esp, 4
jmp 0x4dabef
mov eax, dword [ebp - 0x105c]
mov esi, 8
cmp dword [ebp - 0x1048], esi
jae 0x4da6f3
lea eax, [ebp - 0x105c]
push edi
push edi
push edi
lea edx, [ebp - 0x105c]
push edx
push eax
lea ecx, [ebp - 0x109c]
call fcn.00463b00
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 3
call fcn.0045ea40
test al, al
jne 0x4da75e
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 4
call fcn.004172f0
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.004172f0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1048], esi
jb 0x4dabef
mov eax, dword [ebp - 0x105c]
push eax
call fcn.00406ec9
add esp, 4
jmp 0x4dabef
lea ecx, [ebp - 0x105c]
push edi
push ecx
call fcn.0048e8b0
add esp, 8
test al, al
jne 0x4da795
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 5
call fcn.004172f0
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.004172f0
jmp 0x4dabe0
mov eax, dword [ebp - 0x105c]
cmp dword [ebp - 0x1048], esi
jae 0x4da7a9
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4dabd1
mov edx, dword [ebp - 0x13ac]
mov eax, dword [edx + 0xf4]
lea edx, [ebp - 0x1394]
push edx
lea edx, [ebp - 0x13a8]
push edx
push edi
mov dword [ebp - 0x1394], edi
mov dword [ebp - 0x13a8], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
js 0x4da9df
mov eax, dword [ebp - 0x1394]
cmp eax, edi
je 0x4da9e5
push 0x30
lea ecx, [ebp - 0x1040]
push edi
push ecx
call fcn.004e15a0
mov eax, dword [ebp - 0x105c]
add esp, 0xc
mov dword [ebp - 0x1040], 0x37050003
mov dword [ebp - 0x1038], 1
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1018], edi
cmp dword [ebp - 0x1048], esi
jae 0x4da844
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x4da85f
mov dword [ebp - 0x1030], 0x3704001f
mov dword [ebp - 0x1028], eax
push 0x2b0
lea edx, [ebp - 0x138c]
push edi
push edx
mov dword [ebp - 0x1390], edi
call fcn.004e15a0
mov eax, dword [ebp - 0x105c]
add esp, 0xc
cmp dword [ebp - 0x1048], esi
jae 0x4da88e
lea eax, [ebp - 0x105c]
push 0x200
push 0x2b4
lea ecx, [ebp - 0x1390]
push ecx
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4da8c1
lea edx, [ebp - 0x1384]
mov dword [ebp - 0x1020], 0x3001001f
mov dword [ebp - 0x1018], edx
mov eax, dword [ebp - 0x1394]
lea edx, [ebp - 0x13a0]
push edx
lea edx, [ebp - 0x1040]
push edx
mov dword [ebp - 0x13a0], edi
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x4da9df
mov eax, dword [ebp - 0x13a0]
cmp eax, edi
je 0x4da9df
mov dword [ebp - 0x1398], edi
cmp dword [eax], edi
jbe 0x4da9cd
xor ebx, ebx
jmp 0x4da910
cmp dword [ebx + eax + 0xc], 0x80040103
mov ecx, dword [ebx + eax + 4]
mov edx, dword [ebx + eax + 8]
mov dword [ebp - 0x13d0], ecx
mov dword [ebp - 0x13cc], edx
jne 0x4da9b0
mov eax, dword [ebp - 0x1028]
push eax
call fcn.004dc330
mov ecx, dword [ebp - 0x1018]
push ecx
mov edi, eax
call fcn.004dc330
add esp, 8
mov esi, eax
test edi, edi
je 0x4da99b
test esi, esi
je 0x4da992
mov eax, dword [ebp - 0x1394]
push 0
lea ecx, [ebp - 0x1040]
push ecx
mov dword [ebp - 0x1030], 0x3704001e
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1020], 0x3001001e
mov dword [ebp - 0x1018], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 3
push eax
call edx
push edi
call fcn.00402d0e
add esp, 4
test esi, esi
je 0x4da9a8
push esi
call fcn.00402d0e
add esp, 4
mov eax, dword [ebp - 0x13a0]
xor edi, edi
mov ecx, dword [ebp - 0x1398]
inc ecx
add ebx, 0xc
mov dword [ebp - 0x1398], ecx
cmp ecx, dword [eax]
jb 0x4da910
mov esi, 8
mov ecx, dword [ebp - 0x13ac]
mov ecx, dword [ecx + 0xc4]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [ebp - 0x1394]
mov dword [ebp - 0x139c], edi
cmp eax, edi
je 0x4dabb1
mov ecx, dword [eax]
lea edx, [ebp - 0x139c]
push edx
push 3
push 1
push 0x5362f0
push 0x37010102
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jl 0x4dabab
cmp dword [ebp - 0x139c], edi
je 0x4dabab
mov eax, dword [ebp - 0x105c]
cmp dword [ebp - 0x1048], esi
jae 0x4daa38
lea eax, [ebp - 0x105c]
push edi
push edi
push edi
push edi
push eax
lea ecx, [ebp - 0x10dc]
call fcn.00463b00
lea ecx, [ebp - 0x10dc]
mov byte [ebp - 4], 6
call fcn.0045ea40
test al, al
je 0x4dab65
lea ecx, [ebp - 0x10dc]
push ecx
lea ecx, [ebp - 0x109c]
call fcn.00462c50
test al, al
je 0x4dab65
push 0x1000
lea edx, [ebp - 0x1010]
push edi
push edx
xor ebx, ebx
call fcn.004e15a0
mov edx, dword [ebp - 0x10dc]
add esp, 0xc
push edi
lea eax, [ebp - 0x1398]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push edx
mov dword [ebp - 0x1398], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dab71
nop
mov eax, dword [ebp - 0x1398]
cmp eax, edi
je 0x4dab71
lea esi, [ebp - 0x1010]
jmp 0x4daae0
mov ecx, dword [ebp - 0x139c]
lea ebx, [ebp - 0x13b4]
push ebx
push eax
mov dword [ebp - 0x13b4], edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
push ecx
call eax
mov ecx, dword [ebp - 0x13b4]
mov ebx, eax
cmp ecx, edi
je 0x4dab6c
mov eax, dword [ebp - 0x1398]
cmp ecx, eax
ja 0x4dab6c
cmp ebx, edi
jl 0x4dab71
sub eax, ecx
add esi, ecx
mov dword [ebp - 0x1398], eax
cmp eax, edi
ja 0x4daae0
push 0x1000
lea ecx, [ebp - 0x1010]
push edi
push ecx
call fcn.004e15a0
mov ecx, dword [ebp - 0x10dc]
add esp, 0xc
push edi
lea edx, [ebp - 0x1398]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4daac0
jmp 0x4dab71
mov ebx, 0x8004000c
jmp 0x4dab71
mov ebx, 0x8004000d
mov eax, dword [ebp - 0x139c]
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x139c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x10dc]
mov dword [ebp - 0x139c], edi
mov byte [ebp - 4], 3
call fcn.004464f0
mov eax, dword [ebp - 0x1394]
jmp 0x4dabb6
mov eax, dword [ebp - 0x1394]
mov ebx, 0x80004005
cmp eax, edi
je 0x4dabd1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push edi
push eax
call edx
mov eax, dword [ebp - 0x1394]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.004464f0
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 0
call fcn.0040a2c0
add dword [ebp - 0x13a4], 0x1c
dec dword [ebp - 0x13b0]
jne 0x4da63c
mov eax, dword [ebp - 0x13c4]
cmp eax, edi
je 0x4dac36
mov ecx, dword [ebp - 0x13a8]
push ecx
mov ecx, dword [ebp - 0x13c0]
lea edx, [ebp - 0x13b8]
push edx
push ecx
push eax
call fcn.00406ee0
mov edx, dword [ebp - 0x13c4]
push edx
call fcn.00406ec9
add esp, 0x14
mov eax, ebx
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.00401316
mov esp, ebp
pop ebp
ret